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