fix query error on searchpost