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 (17527,18572,37267,45177,31354,5410,17351,45561,10402,19078,44873,45567,16935,18286,17771,18237,17756,5993,18648,24441,44854,18185,17848,17278,44870,36472,44845,18042,44766,17556,44689,44745,17703,18650,44849,45229,18652,44867,18279,6609,18430,45262,44869,18427,3883,30986,44865,22509,45515,45051,18900,45180,45518,44711,43800,18996,44762,14402,32454,17835,44851,13,44868,18688,44855,6862,17755,44861,45346,44853)
Unknown column 'np.person' in 'where clause'