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,18794,17527,44869,18301,18648,45051,17601,44674,44765,17237,5410,17904,17703,24411,45277,18237,5993,45286,44768,45229,18172,37267,44531,45346,18981,18185,17981,19057,44837,44858,17839,45042,16885,18900,44671,5259,31354,45072,18572,44861,44855,45567,22509,44767,14402,45180,44884,18688,13922,45561,44875,24438,13988,4686,18446,18719,18894,44866,17657,44867,44894,17848,3883,24441,18427,45518,16935,17755,18650)
Unknown column 'np.person' in 'where clause'