SQL query using variables

haha, the thing is, tables are empty so i guess i couldn’t test it correctly :stuck_out_tongue:, well lesson learned… more testing before asking :smiley: