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 '%20tb01_flag%20=%20'Y'%20and%20tb01_flag2%20=%20'N'%20%20order%20by%20tb01_k LIM' at line 1
SELECT tb01_sno, tb01_para01, tb01_para02, tb01_para03, tb01_point, tb01_direction, tb01_side, tb01_k FROM tb01 WHERE%20tb01_flag%20=%20'Y'%20and%20tb01_flag2%20=%20'N'%20%20order%20by%20tb01_k LIMIT 10 ,10