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='8d8ded5e5f0ace8f0f67569706b70514'' at line 1