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 'AND showclass=0 ORDER BY myorder ASC' at line 1
SELECT * FROM ***_enewsclass WHERE bclassid= AND showclass=0 ORDER BY myorder ASC