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 (18688,18719,6862,44853,18648,45346,10402,44775,45421,44767,17839,44867,28530,44687,24412,17009,17335,18894,44861,45277,17904,44837,17755,16885,44640,19057,45042,3,44849,44745,17556,44765,17092,44875,5259,18286,18996,44531,17756,18042,6875,44762,45515,45180,8753,18353,13425,44870,37267,18185,17771,45051,45177,17835,18981,18172,13988,18900,44669,3883,44766,45516,17351,18427,45072,22509,18650,44768,18430,6782)
Unknown column 'np.person' in 'where clause'