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 (13,44853,24441,44531,44835,18185,45229,44671,44863,30135,10402,37267,44765,4686,44849,18572,37057,17114,24438,30963,45277,17771,45518,17755,5410,44687,16935,28530,17492,6875,17981,44868,45180,45051,5993,18652,45516,18446,18900,6609,3883,6782,9341,13425,18427,18648,44873,44851,39676,44739,45517,17601,44866,44845,17703,18301,18650,44884,44870,45043,17527,45515,4765,44867,18894,18688,18279,17756,44711,44775)
Unknown column 'np.person' in 'where clause'