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 (44875,17771,44866,44674,44836,30135,44855,44685,17237,18279,17848,44894,45180,44863,24412,18900,17981,44835,13,4765,44766,5388,18353,44851,18301,44765,44671,39676,44869,44687,17755,18572,13425,36472,5410,44878,10402,18427,45517,45177,44640,4686,17114,18172,6862,44837,34194,18719,30963,18652,18688,45043,22509,44861,44868,43800,37057,44845,18794,44849,17756,8753,30986,18286,18430,45051,17835,44689,24438,24441)
Unknown column 'np.person' in 'where clause'