->MYSQLI ERROR: query() select * from txctimetablepoints where filesKey= and direction='o' and prevKey=0 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 direction='o' and prevKey=0' at line 3