Hi,
I have a simple query like this and its not returning the results:
Can anyone please help me ?Code:SELECT * FROM products WHERE ItemName LIKE '%rover%' AND ItemName LIKE '%Brake%Pads%' ORDER BY devbg_products.ItemName LIMIT 0, 16
Thanks.
| SitePoint Sponsor |



Hi,
I have a simple query like this and its not returning the results:
Can anyone please help me ?Code:SELECT * FROM products WHERE ItemName LIKE '%rover%' AND ItemName LIKE '%Brake%Pads%' ORDER BY devbg_products.ItemName LIMIT 0, 16
Thanks.




You are referring to a table named devbg_products in your order by clause which is not present in the from clause.



Hi,
Yes sorry that was a typo, but i figured out how to do it. So now i am doing like this:
And it seems to be working fine.Code:SELECT * FROM products WHERE ItemName LIKE '%rover%Brake%Pads%' ORDER BY ItemName LIMIT 0, 16
Thanks.
Bookmarks