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 basketSession='4944ce6a6d585e9aa8efe3f97bef73ba'' at line 1