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 (44869,18301,18719,13,18894,44868,45177,17556,44671,44870,24412,44764,37267,24441,5410,44856,45516,18688,44858,24438,44853,44687,19057,45517,3883,28313,44835,45229,44640,17335,18427,44875,5259,5388,17981,44837,44739,18430,44854,44861,17527,18353,16935,6609,17904,44873,17756,3,44775,13425,16885,4686,18996,44894,44689,44767,18648,17839,17755,18572,6862,6875,18279,18286,18446,43800,44867,10402,44836,17703)
Unknown column 'np.person' in 'where clause'