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