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='0f9cf695859d9c8ba932bc2ab7a2b502'' at line 1