I am work in php and this is my array
Array ( [0] => Sharp [1] => New [2] => Stress [3] => Bending forward [4] => Headache )
And I Want to retrieve the record which match the array value in tag column
select *
from table_name
where tag In(Sharp, New,Stress,Bending forward,Headache);
But above query give the error in php side as like
Warning: mysql_fetch_array() expects parameter 1 to be resource, string given in C:\xampp\htdocs\Demo\abc.php on line 14
And mysql side is
1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'forward,Headache) LIMIT 0, 25' at line 1
Thank you in advance