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 (6609,24441,16935,5410,44745,5259,45051,17114,13,24411,18650,45177,34194,44766,17278,44845,44711,17092,16885,17835,44884,37057,13425,3,18688,44853,17237,5388,18719,28313,17009,4686,44865,18652,30986,18286,18572,10402,44837,44836,22509,17771,44856,17904,45262,44685,17703,24412,44870,45229,44867,17848,9341,17756,44765,45421,44669,44671,45518,19078,44863,44873,18185,44775,45286,17556,17839,19057,44854,14402)
Unknown column 'np.person' in 'where clause'