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 (17278,17601,16935,45072,6782,18427,13425,44854,13922,10402,17848,45042,5259,44685,18286,18185,17351,37057,36472,17904,18794,44836,44669,28313,44865,44687,44875,19078,45516,43800,17114,45262,44873,18042,44856,44894,17756,17556,30986,18172,17657,22509,44739,45518,44689,17527,18996,45180,44866,19057,17771,45561,44764,45421,18652,18650,44767,17335,44855,44851,45229,44849,18648,45517,34194,17237,28530,17835,44861,18237)
Unknown column 'np.person' in 'where clause'