A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/tip_kuhinje.php

Line Number: 38

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/tip_kuhinje.php

Line Number: 39

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/tip_kuhinje.php

Line Number: 40

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/potrckob/public_html/klopanaklikcom/system/libraries/Exceptions.php:166)

Filename: codeigniter/Common.php

Line Number: 360

Database Error

A Database Error Occurred

Error Number: 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 'AND rd.OPSTINA_ID LIKE '%'' at line 1

SELECT DISTINCT r.*FROM vrsta_kuhinje vk INNER JOIN restoran_2_vrsta_kuhinje rvk ON ( vk.VK_ID = rvk.VK_ID ) INNER JOIN restoran r ON rvk.REST_ID = r.REST_ID INNER JOIN regioni_dostave rd ON (r.REST_ID = rd.REST_ID) AND vk.VK_ACTIVE = 1 AND vk.VK_DELETED = 0 AND r.REST_ACTIVE = 1 AND r.REST_DELETED = 0 WHERE rvk.VK_ID = AND rd.OPSTINA_ID LIKE '%'