Hi i have problem witch part of sql query in php.
...
$sql.= " --COALESCE(SUM(CASE kontrole.zakres & 4 WHEN 0 THEN 0 ELSE 1 END),0) AS ADR,";
$sql.= " COALESCE(SUM(dbo._IS_ADR(kontrole.pojazd_key)),0) AS ADR,";
...
Generate error:
Warning: mssql_query(): message: Incorrect syntax near ','