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