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 (45042,44865,14402,6782,44869,30986,45177,44687,3883,44878,4686,44837,18446,45518,24441,32454,44845,17755,45567,44766,6609,5259,17278,18172,44671,18286,17756,37267,44531,17237,44669,44861,44858,44711,28313,44854,44768,44764,18427,18650,17527,14622,18688,45561,5993,30135,44767,17556,44836,18652,16935,44867,4765,45051,18648,18894,45515,5388,44745,44870,44868,24438,18996,6875,45516,18185,44866,45346,45517,45262)
Unknown column 'np.person' in 'where clause'