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 (18279,17351,18719,17237,36472,30986,17771,18688,44884,3883,4765,18172,18900,19057,18427,16885,18650,4686,24411,24412,10402,30135,44869,45072,18301,44674,17703,45517,45229,18353,17556,9341,45262,44868,17009,44894,28313,44669,44837,18572,44765,18430,45180,39676,17657,13988,18996,44863,13922,5410,45421,44640,17527,17835,6862,13,45515,17848,31354,17601,17755,3,44711,6782,44739,44856,45177,6875,44835,44768)
Unknown column 'np.person' in 'where clause'