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