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 (18981,17904,22509,44836,44835,18279,17848,3883,44866,44867,24438,45177,45421,18427,17601,18900,17556,44745,34194,17278,17527,44868,5259,45518,44856,18446,43800,18185,45180,17335,18572,18652,6782,5388,30986,45567,44762,44767,45286,44837,17351,18237,44861,18353,16885,8753,44775,18301,6609,18172,5410,14402,17092,18042,44845,44894,24412,18430,45229,44531,19057,28313,5993,44854,18794,44764,13425,17839,17981,45042)
Unknown column 'np.person' in 'where clause'