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 (18719,44689,45277,45517,31354,4686,17009,44866,44848,44775,18894,18648,17756,45567,18427,3,17848,44868,6609,17904,44685,5388,44766,45286,39676,44875,17527,17351,44745,14622,30135,44873,44851,44867,18353,17335,45516,44856,45042,44764,37267,28530,18996,44669,44853,18172,44878,13425,17755,44711,30963,44863,8753,17237,13922,44739,18650,44765,37057,18430,19078,9341,44674,18900,17092,6782,18279,18042,44768,5259)
Unknown column 'np.person' in 'where clause'