( ! ) Fatal error: Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '\'approved\' AND po_number<>\'N/A\' AND id NOT IN (SELECT po_id FROM grn_entries' at line 1 in C:\wamp\www\__tmp.php on line 4
( ! ) PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '\'approved\' AND po_number<>\'N/A\' AND id NOT IN (SELECT po_id FROM grn_entries' at line 1 in C:\wamp\www\__tmp.php on line 4
Call Stack
#TimeMemoryFunctionLocation
10.0003354792{main}( )...\__tmp.php:0
20.0145401032query( $query = 'SELECT po_number,supplier_name,purpose,amount,currency,uploaded_at,combined_pdf_path FROM purchase_orders WHERE final_approval_status=\\\'approved\\\' AND po_number<>\\\'N/A\\\' AND id NOT IN (SELECT po_id FROM grn_entries) ORDER BY uploaded_at DESC', $fetchMode = ??? )...\__tmp.php:4