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 (10402,45346,45277,44866,44853,17492,5993,17601,3883,45421,18688,43800,17237,44767,44856,44745,17092,44868,45286,17755,44851,6609,44687,36472,18894,18981,44870,17848,6862,44685,44689,30963,17556,44531,19078,17278,44873,18237,17657,44867,18648,18900,44765,18042,18301,18650,44848,45051,17335,44836,8753,45180,18996,16885,17904,34194,28530,45042,44861,45517,44878,13,44855,44884,18286,44762,45177,45561,18430,13988)
Unknown column 'np.person' in 'where clause'