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