АВТОБУСНИ РАЗПИСАНИЯ МЕЖДУНАРОДНИ ЛИНИИ

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 t1.s_grad =323 AND t2.s_grad = 113 AND (t1.s_vreme_pat < t2.s_vreme_pat) AN' at line 5