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 (13988,44865,44858,16885,17756,6782,8753,44870,18652,17237,44884,24438,17009,44685,18172,31354,30963,24412,17601,18446,44768,17848,44762,45180,4686,16935,17351,5259,44687,17703,45517,44854,17904,18572,17492,37057,44849,17981,30986,45043,5993,45042,45567,18427,4765,45177,44848,44837,18185,45561,17657,44853,37267,45277,44689,18279,17835,18648,36472,18237,44739,45286,44866,19057,44867,44894,14402,45229,44775,17556)
Unknown column 'np.person' in 'where clause'