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 (17771,14402,44689,44711,9341,45421,18650,17009,37057,44851,16935,44853,18185,44739,18430,19057,6782,5993,17703,44674,18794,44866,45567,18894,24438,18981,18301,17756,28530,18688,44855,17492,14622,17835,19078,13,18900,18427,44764,16885,44687,6875,17601,45346,44854,17904,44671,44765,44869,17092,44531,45517,44762,18572,18279,17527,18719,17839,37267,18353,44845,18172,18652,44873,44884,44867,3883,44767,45229,17657)
Unknown column 'np.person' in 'where clause'