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 (3883,6782,44873,44766,45277,44863,45051,17092,18900,18981,45518,44745,36472,30986,45229,17351,17527,8753,16885,18648,17981,17839,18688,18430,43800,17237,44765,45286,44884,18650,31354,24412,45262,13,37267,24441,45516,45072,34194,4765,18042,6875,44711,37057,28530,17278,45515,19057,39676,45177,44854,5388,4686,18894,17703,18996,44689,44856,44870,45421,17556,44869,44674,44687,44878,13922,44894,17009,18353,18719)
Unknown column 'np.person' in 'where clause'