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 (45286,4765,17755,18185,45262,44767,17981,45421,19078,17601,44835,24438,4686,44878,17092,44764,44868,14622,44873,45515,17335,44837,45567,45518,44865,18794,18652,5388,44669,44866,18427,44739,17835,44849,17492,44884,45517,30135,45229,44640,44766,17237,37267,24411,18353,17756,16935,31354,18301,18688,18719,18430,44745,44687,44856,44674,44851,45180,44836,44855,45561,44894,44869,36472,44854,44861,44848,17114,24412,13922)
Unknown column 'np.person' in 'where clause'