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 (18279,18427,44854,14622,17771,45515,45516,17756,44884,6609,45072,45277,18648,44867,44866,14402,44878,44856,45177,18996,44837,44868,44640,17835,5993,19057,44762,45262,37057,44687,18446,44849,16885,18572,17351,44766,17335,45180,18185,44674,44853,18353,13,44855,6782,3883,45043,17237,44775,44739,17839,45229,45042,44671,18430,44689,9341,34194,44768,44863,44869,30986,17009,28313,17092,28530,44685,44711,44765,44865)
Unknown column 'np.person' in 'where clause'