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 (18688,9341,17092,28313,44848,18172,44894,44685,18719,44845,44739,18430,44835,3883,18042,34194,44861,44837,18652,17848,5410,4765,18794,44873,45518,18237,5259,18185,6609,17756,28530,18446,44836,18650,19057,45516,44765,17492,44870,31354,45180,30986,16885,44867,17237,44768,18572,44866,17556,44775,17703,44853,17009,44745,18279,18900,6862,37267,44851,44640,44854,44687,22509,45072,45561,44869,44689,45517,44868,44674)
Unknown column 'np.person' in 'where clause'