Fix missing left expression on query parser

Now we are able to detect where the left side of a expression is
missing, and also reconstruct the whole query in that case.