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 (18279,13,17835,44873,5259,44531,44848,9341,5410,44711,18572,22509,44689,39676,44640,44856,16935,18650,24441,45286,10402,44861,17848,45516,44875,43800,28530,6875,17756,45229,44849,24412,17556,18719,5388,45051,5993,44671,37267,45072,44867,44745,44766,44837,17351,17335,17278,44868,44884,45346,18353,17492,18427,24411,13988,45180,18042,6609,3883,45277,44762,17601,8753,18894,18900,45421,18981,44851,30986,16885)
Unknown column 'np.person' in 'where clause'