def METHOD_NAME(client):
    invalid_create_query = '''
        CREATE MAWDOL mindsdb.home_rentals_model
        FRUM example_db (SELECT * FROM demo_data.home_rentals]
        PRAYDICT rental_price
    '''
    train_data = {
        'query': invalid_create_query
    }
    response = client.post('/api/projects/mindsdb/models', json=train_data, follow_redirects=True)
    assert '400' in response.status