该
max查询需要在其自己的子查询中,因此您的最终SQL应该是::
SELECt features.featureTitle AS title, features.featureSummary AS body, features.postedOn AS dummy, DATE_FORMAT( features.postedOn, '%M %d, %Y' ) AS posted, NULL, NULL, staff.staffName, features.featureID FROM features LEFT JOIN staff ON features.staffID = staff.staffIDWHERe features.postedOn != (select max(features.postedOn) from features)



