Sure it matters. When you do a $read without the N option mIRC will try to evaluate identifiers regardless of what you are doing with it.

When mIRC sees that line it evaluates $read(...) so it can check the condition of your IF statement. When it does the $read it attempts to evaluate $identifiers. The syntax in the file is not correct for $base so you get an error.