still looking for select error

changed query on line 192