Sql query wordpress export post