The following SQL PHP query shows error, why ?
$plays = array("bionic","user54");
// Attempt select query execution
$sql = "SELECT * FROM tbl_product WHERE status='winning' AND agent IN (" . implode(",", $plays) . ");";
Error
ERROR: Could not able to execute SELECT * FROM tbl_product WHERE status='winning' AND agent IN (bionic,user54);. Unknown column 'bionic' in 'where clause'
it says column 'bionic'
in error, but bionic is not a column, its just a username in column agent
Instead of array if I use agent='bionic'
it will show results.