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 (44845,13988,5410,45516,17556,17237,44853,18172,45262,44836,32454,4765,17771,18652,22509,5993,17839,28530,44867,9341,18572,19078,44848,17278,45177,17092,18301,18650,44869,10402,44837,6609,17492,44870,45042,36472,44669,45051,18430,6782,13425,45286,18286,18446,44739,6875,44868,45517,45072,8753,44766,44855,17848,44764,45518,44767,44884,5259,44745,44866,18353,31354,44865,18185,44856,44858,17904,18648,34194,24411)
Unknown column 'np.person' in 'where clause'