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