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