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 (18572,44685,44745,5410,18688,43800,13,44861,44835,45561,18652,17904,44640,45421,45180,44687,18353,44764,10402,45518,44875,44869,44689,44868,18279,44866,34194,45286,17092,44765,44854,5993,45051,14622,3883,18648,44858,18042,44855,44873,45515,18430,17848,18794,8753,28313,17556,19078,30986,45277,44669,17756,17278,32454,16885,17657,45042,44531,44836,44865,44766,18650,44867,17703,37267,45177,19057,37057,18286,18237)
Unknown column 'np.person' in 'where clause'