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 (10402,44669,17981,18719,18301,17335,14622,18286,18981,45517,44762,45421,44685,18894,44775,45180,44687,22509,44768,17114,45515,32454,17092,44764,17839,4765,17237,18996,31354,45516,6609,9341,17556,18650,44767,18353,44845,44866,44766,3883,44867,18042,6875,4686,44865,44855,43800,44861,13425,36472,45277,37267,44869,45286,18185,44858,5993,3,24441,30963,30986,18688,13922,18572,45229,30135,19078,5388,18794,44835)
Unknown column 'np.person' in 'where clause'