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 (30963,18572,5388,5410,44856,44685,18353,30986,45042,18286,44868,45518,17839,5259,45177,17601,3,45421,37267,45229,28530,44866,17904,44854,32454,18446,43800,44689,13,44674,30135,24441,45286,18996,44848,44837,18185,18652,44851,45346,4686,44867,44855,17335,44640,44739,44671,17848,10402,24411,8753,18042,44865,16885,6609,44531,45517,17556,44765,45180,18900,44869,17703,44762,18427,18719,17771,45051,34194,9341)
Unknown column 'np.person' in 'where clause'