chornbeck
10-31-2011, 05:33 PM
Here is my query:
$resultleads = mysql_query("SELECT * FROM LeadTable WHERE Operator = '$CurrentOp' AND CallBackDateTime IS NULL AND (LeadDisposition IS NULL OR LeadDisposition = 'NA' OR LeadDisposition = 'LM') ORDER BY DispositionDateTime ASC, TimesDispositioned ASC, LeadType ASC") or die(mysql_error());
If I remove any one of the three WHERE conditions, it works correctly. That doesn't work, I need all three...
Tips?
$resultleads = mysql_query("SELECT * FROM LeadTable WHERE Operator = '$CurrentOp' AND CallBackDateTime IS NULL AND (LeadDisposition IS NULL OR LeadDisposition = 'NA' OR LeadDisposition = 'LM') ORDER BY DispositionDateTime ASC, TimesDispositioned ASC, LeadType ASC") or die(mysql_error());
If I remove any one of the three WHERE conditions, it works correctly. That doesn't work, I need all three...
Tips?