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 (44687,43800,44853,45516,39676,22509,44855,44848,18353,45051,44858,34194,19078,18279,17335,44669,9341,18286,4686,44845,44867,14622,45515,44875,18446,44739,45518,44854,18650,45277,17492,8753,5993,45421,44764,16935,45043,17237,44865,44861,44884,17848,18430,17092,17755,6782,6609,18648,18427,45561,5410,10402,3883,18794,18172,44767,45262,44531,37057,17114,44766,44863,18572,44894,18996,44768,5388,45042,44878,24438)
Unknown column 'np.person' in 'where clause'