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 (28530,44855,44689,4765,18301,44687,45346,44766,18353,17092,18652,45042,18794,5388,18648,18996,44856,44685,18688,6862,17755,18279,44674,6782,39676,45043,45561,45421,44711,17556,44851,44767,45567,44867,45177,44848,44853,17114,17278,17527,18172,10402,45180,32454,17848,44671,44531,22509,18185,5259,44875,30986,45518,44836,5993,44894,44739,18900,18042,44845,45516,4686,3883,17335,44869,17657,6609,44868,18981,44863)
Unknown column 'np.person' in 'where clause'