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 (17771,45180,5388,44765,44835,45346,19057,13425,45515,44531,17092,19078,18572,24441,45517,3,44685,5259,39676,45042,45262,44689,44837,8753,37267,5410,44861,3883,44687,18237,18279,17703,18652,45277,18427,16935,45177,18353,44849,44711,17556,4765,18172,5993,17756,6862,32454,45516,18301,44866,17601,17114,18648,45286,18185,28530,44775,14402,28313,44856,18794,14622,17848,44848,17981,18894,44870,44868,17527,44739)
Unknown column 'np.person' in 'where clause'