ERROR: 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 '?plan=1' at line 1 (select id_exported, reax.typ, druh, okres, nazev, DATE(datum) as datum from reax where id_exported = pruvodce_2.php?plan=1)