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 '' at line 1
SELECT * FROM nowa_struktura WHERE ID=;
/index.php at line 3
SQL Error
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 ') order by linkOrder' at line 1
select if (LINK>'', LINK, ID) link, ID, NAZWA nazwa, KOLEJNOSC linkOrder from nowa_struktura where ID_RODZIC = (select ID_RODZIC from nowa_struktura where ID=) order by linkOrder
/index.php at line 3
SQL Error
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 'and leftMenu=1 order by linkOrder' at line 8
select
if (LINK>'', LINK, linkId) link,
n.ID ID,
if (menuName>'', menuName,NAZWA) nazwa,
linkOrder
from mary_linki_ m
left join nowa_struktura n on m.linkId = n.ID
where m.siteId = and leftMenu=1 order by linkOrder
/index.php at line 3