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 'WHERE mm_id='' AND bv_year='d' AND sm_id='642' AND eng_id='' AND trans_id='' LIM' at line 1SELECT * FROM WHERE mm_id='' AND bv_year='d' AND sm_id='642' AND eng_id='' AND trans_id='' LIMIT 0,1