My SQL Errors Debug..

MySQL Error : 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 D_Order ASC LIMIT 1' at line 1
Query Result : SELECT IFNULL(D_Img5,'') D_Img5,D_Key FROM artware_products_catalog WHERE D_YN = 1 AND D_Level = 2 AND D_Pid= Order By D_Order ASC LIMIT 1