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 (44869,44767,18648,31354,17835,18652,10402,18042,44766,18794,6609,44765,17335,18279,8753,13922,28313,18996,6782,45177,5410,44894,18430,44866,18172,44739,17981,18446,17492,44835,18572,18688,19078,44775,44853,17904,18185,9341,45051,45517,5993,24438,45518,44858,44669,37267,24412,44873,17092,44762,17601,17848,45229,3883,44863,18353,18301,13425,17839,17527,44861,45072,18427,17703,45286,16935,19057,6862,44875,5388)
Unknown column 'np.person' in 'where clause'