Warning: Use of undefined constant FAIL_QUERY - assumed 'FAIL_QUERY' (this will throw an Error in a future version of PHP) in /inc/database.functions.php on line 55

Fatal error: FAIL_QUERYYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and type = "" and deleted != 1 ORDER by ord' at line 3 Wystapil blad: SELECT * FROM gallery WHERE owner = and type = "" and deleted != 1 ORDER by ord in /inc/database.functions.php on line 55