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 (17703,28313,44674,44869,30986,44854,18894,4765,44836,45180,6609,45516,45346,17092,3883,45567,17657,18353,6862,17755,18572,24412,44745,44866,18427,24411,45229,45177,17009,6782,16885,44711,18981,5388,44739,44868,18279,5410,17848,45277,28530,45517,44689,45561,44856,18794,31354,18446,18648,13922,44766,10402,17835,17771,44848,17981,45072,19078,44853,44863,44835,4686,44875,39676,45042,22509,37057,14402,44870,44669)
Unknown column 'np.person' in 'where clause'