Query Failed :
  • errorno = 1064
  • 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 'And PM.BestSeller='N'' at line 1
  • query = Select PM.Code, PM.Name, PM.ProductImage From productmaster AS PM Inner Join productstocategory AS PTC ON PM.Code = PTC.ProductCode Where PTC.CategoryCode= And PM.BestSeller='N'