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 (37267,17335,5410,19057,18688,45286,44845,17601,44861,44851,44685,45515,17237,45277,18648,18900,44894,44870,44764,18427,17351,18042,4686,30135,18650,13922,24412,17703,43800,44837,6862,44865,45180,44768,45051,17904,14622,4765,32454,3,44858,24438,10402,5259,18279,17756,6875,19078,31354,44849,44765,45346,45229,44856,45518,44674,44854,45072,18572,45262,17556,17527,17009,5388,18794,6782,17114,44863,18996,24441)
Unknown column 'np.person' in 'where clause'