Warning: SQLite3::query() [sqlite3.query]: Unable to prepare statement: 1, near "AND": syntax error in /paginacja.php on line 45

Fatal error: Call to a member function fetchArray() on a non-object in /paginacja.php on line 45