In my database table I have 6 Columns id(auto),title,news,image,type I write this query.
select id,title,image
from add_news
where FIND_IN_SET('Travel','Music',type)
ORDER BY id DESC
I am getting this error
Incorrect parameter count in the call to native function 'FIND_IN_SET'
I am guessing that
type
is a comma-delimited list. This is a very poor data format, and you should have a separate table with one row per type and article.But, given the format, the correct syntax is: