I\'m working on a Flask app, and am converting form SQlite to MySQL, using SQLAlchemy as the ORM the entire time. A query that used to work is now throwing off the below err