fixed array access from explode error in QueryBuilder

Signed-off-by: Ryan Hungate <ryan@vextras.com>