Fix php notice on empty like query