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 (45517,44875,17237,17835,17092,44837,5410,18981,18301,22509,18446,44853,17114,17657,18688,44854,4765,44851,44767,45262,44849,44858,45277,24441,18042,45229,18353,14402,44855,17904,18894,44866,13922,45072,18794,17848,6862,30135,30986,18648,44869,44674,45180,45561,6782,44870,45515,16935,5993,44868,13,17755,37267,18279,44765,45177,19057,44768,14622,18430,10402,44861,44884,44863,44687,17527,44762,24438,32454,17351)
Unknown column 'np.person' in 'where clause'