SELECT st_id FROM www_strony WHERE st_nadrzedna = AND st_jezyk='pl'
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 st_jezyk='pl'' at line 4