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