I am new in Livecode programming and I am struggling

I have to connect a project in Livecode to SQlite DB which has worked well. The problem was when I wanted to select the elements from my DB-table which are similar to a field content in a card ( user input) it gives me an error.
This is my script:
On mouseup
put revDataFromQuery(tab, return,gConnID, "SELECT * FROM tbl_Events WHERE City= '"& gCityfield &"' AND Date = '"& gDatefield &"',") into tConxn
end mouseup
Where City and Date are columns in my DB-table and I have previously put "Cityfield" and "Datefield" ( user input) in global Variable to be able to use them in any card of the stack. I am almost sure it is a syntax error.
would be great if somebody could help
