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 (14402,44689,18572,39676,18719,17527,44869,5410,13425,17556,44711,44671,17278,44853,17009,30986,22509,18688,5993,17703,44865,45515,34194,24441,44849,44766,3883,44775,44531,18172,18237,18279,37267,8753,45517,44765,44870,44884,45421,44854,44837,44855,18794,44669,44873,44851,17981,45516,44836,44863,44687,44867,18650,45286,6782,45177,44878,6875,18900,30963,45262,9341,13922,14622,44875,18301,5259,18996,10402,18185)
Unknown column 'np.person' in 'where clause'