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 (44775,45277,17009,44851,44869,17839,8753,45518,6609,44873,19078,17492,13922,45421,18648,45286,3883,44894,16935,44867,17114,44689,44836,18185,45262,18719,44878,45346,5259,18900,18446,17981,44669,44853,28530,18996,17278,32454,18688,44766,34194,45516,45051,17601,17755,18301,44875,44858,44861,44765,44835,45517,44531,44671,24411,24412,18794,37267,45567,5388,44711,28313,44854,6782,17092,6862,13,44855,44674,18572)
Unknown column 'np.person' in 'where clause'