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 (44865,5410,44669,17351,17492,17657,34194,17092,18688,44671,9341,18172,5259,18996,4765,37267,17755,18719,18279,44861,45516,44835,45180,24441,37057,13,45072,10402,44765,18648,44766,44866,17848,44764,45042,44867,18794,44858,44768,4686,13922,44851,24438,44856,6862,19078,17237,18446,44739,44863,45515,44762,5388,44855,30135,44853,28530,44836,45051,44767,28313,5993,30986,45286,18652,44837,17756,45421,18894,18286)
Unknown column 'np.person' in 'where clause'