Fix invalid sql on videos order