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 (45042,44764,44854,44856,18688,30963,18794,3883,44835,36472,44884,45518,44836,6875,19078,17335,44671,17703,13,5993,44894,44767,18279,45421,24412,44685,44775,28313,17492,18894,17601,6609,44865,17848,45177,19057,18996,45567,45229,45277,17904,14622,44669,17351,5388,30986,18650,44739,18572,44863,45262,44765,24411,32454,17755,44837,6862,17114,18981,18301,17092,44869,39676,4686,44851,18648,44868,18652,17009,18286)
Unknown column 'np.person' in 'where clause'