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 (18286,44884,18652,37057,45421,44775,30135,18794,24411,45277,45042,45515,44762,45516,18981,17657,44671,14622,13,44863,44845,19057,18172,13922,44837,5388,44854,45177,4686,44669,17278,44674,6862,18427,17556,44745,24438,24441,18279,44866,17237,44836,44848,17703,44767,45346,18185,17114,4765,44851,17904,45262,44870,22509,30986,18648,44711,17009,18353,44856,6609,17601,37267,18042,44689,45561,17755,45229,13988,17492)
Unknown column 'np.person' in 'where clause'