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 (44687,17703,45561,17904,13,18650,45515,34194,45042,18719,45229,45043,44745,45277,18648,39676,30963,37267,45517,44858,18446,44837,18427,17351,44674,14622,44835,18237,44765,28530,44849,5993,18172,3,30135,44863,31354,17556,18900,5410,45072,4765,6782,44766,18894,44711,45177,19078,13922,44867,17092,44689,45567,17755,43800,6609,45051,45262,18301,32454,44531,3883,18353,45286,45180,45518,44768,18286,44894,17756)
Unknown column 'np.person' in 'where clause'