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 (45561,18648,18279,24441,44767,17527,17771,13,45177,45051,44854,44531,44837,18719,44870,18353,18237,17755,4765,17839,45042,44739,24411,17278,45277,24438,30135,44669,16885,45421,17114,10402,17492,6862,17756,37057,44845,44848,17981,17904,44689,44853,45043,45229,17835,45180,44745,18427,18446,32454,31354,44878,4686,44861,13425,18996,45518,19078,19057,18172,44884,44836,44867,44711,17848,6782,28530,44894,44875,16935)
Unknown column 'np.person' in 'where clause'