$result = mysql_query('SELECT * FROM ACCOUNTING WHERE ACCTSTATUSTYPE = "Start" AND Process_Status IS NULL LIMIT 10');
if($result === FALSE)
{
die(mysql_error());
}
The following code spits back
Unknown column 'Process_Status' in 'where clause'
However, when I copy and paste this query
SELECT * FROM ACCOUNTING WHERE ACCTSTATUSTYPE = "Start" AND Process_Status IS NULL LIMIT 10
directly into MySQL, it is successful.
I am a bit new to PHP/MySQL so do queries have to be worded differently when parsing them with PHP?
Thanks,
Matt