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 (34194,44875,45043,44894,45286,44768,44855,44689,17981,18446,45042,30963,44775,44762,44884,24438,44745,45177,44845,18279,44873,18185,45421,17351,44856,18688,44868,44674,5259,18353,18650,44739,24412,44851,28530,45180,13,37267,45262,17009,17114,13922,44861,8753,5388,18427,18042,17756,17278,30135,39676,18572,44766,17092,44669,44849,44836,45277,17839,10402,45517,44869,44711,44878,18794,17755,44765,3,36472,6875)
Unknown column 'np.person' in 'where clause'