Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON = (SELECT FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE = AND nyc.category = 310 AND nyp.person = np.person AND = AND = AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = AND nc.category = 310 AND = AND np.person = AND IN (18572,17278,17335,37057,18185,45517,18042,17351,18353,45567,24438,45277,17755,18996,18652,5388,6609,19078,31354,45262,28313,17237,45286,44867,17657,18900,44674,17839,17601,39676,9341,24441,45229,18719,16885,44868,44851,17848,44884,18648,18688,18894,18286,44849,44766,8753,17981,45516,18427,32454,44768,17527,17492,45346,45518,17009,18650,44764,45515,44873,44863,17756,45072,44856,4765,44855,44870,16935,5259,3883)
Unknown column 'np.person' in 'where clause'