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