Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, nx.id AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON nx.id = (SELECT ny.id FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE ny.id = nyc.news AND nyc.category = 310 AND nyp.person = np.person AND nyc.news = ny.id AND nyp.news = ny.id AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = p.id AND nc.category = 310 AND nc.news = np.news AND np.person = p.id AND p.id 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'