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