I have to select a row from a table 'seller' which have two columns 'cat' and 'place' in which multiple ids are stored with commas
'seller' table
╔═══╦════════╦══════════════╗
║ id║cat ║ place ║
╠═══╬════════╬══════════════╣
║ 8 ║1,2 ║ 1,2,3,4 ║
╚═══╩════════╩══════════════╝
my mysql query
SELECT * FROM `seller` WHERE cat like '%1%' && place LIKE '%2%'
but i know it is bad query.if there is 12 it will treated as both 1 and 2. is there any good query??.