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 (9341,17114,13,37057,44767,8753,18237,44870,44867,6875,44849,17657,44848,17335,17981,44689,18279,45177,13988,18894,36472,18427,44875,28313,14622,18042,45051,39676,45518,45286,17755,44856,44764,18301,44866,44711,16885,3,5388,6782,45517,37267,24411,44878,44739,24438,30963,18688,43800,44687,17771,17848,17092,13922,10402,45180,18572,14402,45346,17904,18185,44640,44854,19078,44853,45043,44837,17492,28530,6862)
Unknown column 'np.person' in 'where clause'