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 (28313,44858,44866,44671,45229,24438,13988,34194,13425,44845,44687,18650,30963,45515,17114,44711,22509,44856,18185,44894,18719,17237,16935,3883,44875,45277,45421,44669,44674,5410,44739,45051,45042,17527,17981,44766,18286,44848,45561,5993,9341,44837,17904,17835,18301,45518,45177,45516,44855,44767,44762,17351,16885,18996,19057,24441,13922,17009,44870,18652,17657,39676,10402,13,18572,45517,45043,45180,14402,18172)
Unknown column 'np.person' in 'where clause'