sql-error [ select koukai from category_tool_tbl where id1 = and id2 = 0 and category_id1 = 10000 and category_id2 = 0 ] 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 id2 = 0 and category_id1 = 10000 and category_id2 = 0' at line 1