Fatal error: Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'and reference.aktivan='D' and reference.usluga=usluge.broj order by usluge....' at line 1 in /home/apsidahr/public_html/refe.php:49 Stack trace: #0 /home/apsidahr/public_html/refe.php(49): mysqli_query() #1 {main} thrown in /home/apsidahr/public_html/refe.php on line 49

Reference