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 (44870,44836,45177,37267,17904,18572,18650,44767,44766,45043,19078,13922,45516,6782,5259,37057,44894,44674,16885,28530,45518,34194,14402,45042,18427,17335,6609,24411,18981,44711,44531,17755,18301,17237,17756,18652,10402,17657,44867,45072,17114,17703,18894,44854,3883,17848,44768,18648,17278,44878,24412,45180,44745,18042,16935,45051,44851,43800,44671,44884,18353,44845,44640,4765,3,44669,44863,45517,45515,18279)
Unknown column 'np.person' in 'where clause'