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 (18794,45517,9341,17351,17755,17904,22509,17657,17278,44669,24412,18652,30986,44767,18719,44764,44848,19078,17601,45262,44856,18650,44868,45567,44884,45051,44861,45072,17703,6609,5410,45421,44768,5259,30963,18688,44671,37267,17756,17835,44855,18042,44873,44836,6875,18286,18572,17009,44711,18648,44687,44851,17237,13,18996,17114,44775,45277,45043,44689,44863,17848,44849,44739,45518,17771,45177,18279,45180,45516)
Unknown column 'np.person' in 'where clause'