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 (45072,44849,39676,6862,28313,17335,22509,17848,44863,44848,17237,17092,44869,44853,17835,18301,30963,19078,24438,18185,44845,37267,44689,44873,14622,6609,18719,44870,45229,44767,18900,17351,18430,44531,44836,45346,17114,44875,5259,36472,44768,17278,18172,45421,44868,45515,44855,44884,44856,44835,45043,18650,18237,19057,17527,17771,31354,14402,44685,44866,18652,16885,13,13425,44669,45180,18996,17492,18279,5993)
Unknown column 'np.person' in 'where clause'