SQL Query Error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1 select * from product_info where pid = SQL Query Error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'order by orderid asc , PMID desc' at line 1 select * from product_map where P_Pass=true and pid= order by orderid asc , PMID desc SQL Query Error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'and bigid= order by orderid asc,pid desc limit 0,10' at line 1 Select * From product_info where P_Pass=true and topid= and bigid= order by orderid asc,pid desc limit 0,10