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 (44669,5410,44764,17848,17351,13425,44836,44878,18042,18446,44870,3,18427,30135,45072,44739,31354,13922,6782,18648,18286,28313,44762,14622,44851,18185,5259,45277,17839,44873,44687,24438,18719,19057,44866,16885,44894,3883,44867,17278,14402,17092,44671,45042,44767,45229,45286,44861,44848,44689,18652,17527,13,4765,17114,45346,18237,44865,44775,44858,24412,18353,44845,4686,18688,44837,44854,44765,17981,32454)
Unknown column 'np.person' in 'where clause'