SELECT Ele_Code, Col_Code, Row_Code, Ele_Value, Ele_Desc FROM rubElements WHERE Col_Code IN () ORDER BY Row_Code, : 1064: 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 ') ORDER BY Row_Code,' at line 1