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 (18981,17771,43800,18301,14622,44870,37057,18353,5259,24438,45517,45518,22509,13425,45346,45561,6862,18652,17904,44868,6782,44767,44878,44849,44775,44856,45277,44835,44837,45262,44836,44711,45515,17601,44873,45421,17237,30963,17981,18688,5993,18427,18650,44671,44640,13,37267,24412,3883,18446,18572,44867,18648,17009,17755,19078,44851,36472,44863,44845,44894,45177,17351,18237,34194,45072,45516,17278,10402,44884)
Unknown column 'np.person' in 'where clause'