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 (45277,44669,14402,17839,17771,44867,45421,45346,44775,44745,17527,31354,18301,18996,45229,17703,17756,28530,5259,22509,17492,45567,45262,44687,24412,44849,44854,44873,45180,44671,5993,45517,44884,14622,16935,30963,44865,44863,18172,44836,5410,44856,45515,44878,44768,44711,44739,13922,17657,44861,8753,44870,45051,18900,16885,44894,37267,18572,44767,44674,30986,45043,18652,28313,39676,45177,17335,44866,17351,45042)
Unknown column 'np.person' in 'where clause'