You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '=a left join timesoft_lgh.ms_stdmaster = b on a.code= b.code where a.fb='' orde' at line 1