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 (17351,18981,18301,44768,45518,44674,28313,18900,18648,44669,45229,44870,13,18430,45516,18894,37267,45515,17839,44851,18042,44775,43800,44762,44765,44856,30963,45177,45421,44861,31354,18353,8753,18172,45051,44767,44848,18279,30135,44863,44894,24441,17237,17703,18652,44866,45072,44764,18237,14402,18794,44836,17009,44711,39676,44867,18427,44640,44855,17601,6875,16935,19057,10402,24411,44837,18996,30986,17278,6782)
Unknown column 'np.person' in 'where clause'