I have a table like this:
id image_id style_id
------------------------
1 45 24
1 45 25
1 47 25
1 45 27
1 45 28
I want to pull image_id column where all three below conditions match:
style_id = 24
style_id = 25
style_id = 27
I have a query like this:
SELECT image_id FROM list WHERE (style_id = 24 AND style_id = 25 AND style_id = 27)
which doesn't return me image_id 45.
24,25and27at the same time?