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='4e37b306035835adbcaa1ee3fb5fbb99'' at line 1