Reputation: 930
my Mysql query throw the 1054 unknown column interleaving.pdf?
SELECT user_id,doc_id,name
FROM `get_edoc_details`
WHERE user_id=290
AND doc_id=1
AND name=interleaving.pdf;
Upvotes: 1
Views: 67
Reputation: 622
You'll need to enclose the value of the field in quotes as it is a string.
SELECT user_id,doc_id,name FROM `get_edoc_details`
WHERE user_id=290 AND doc_id=1 AND name='interleaving.pdf';
Upvotes: 1