Definetely working

Query is now working properly