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 (17601,44868,16935,44836,44687,18719,44835,44669,44851,37267,5993,44867,44854,13988,17351,44861,44866,30986,18353,44711,17703,17114,24412,45262,6875,17009,18794,6862,18572,3,44775,44884,36472,44856,18427,13425,44640,44858,44870,18279,30963,14622,44849,44853,18650,19078,22509,45515,44873,17556,43800,13922,44845,44764,18648,45561,28530,45177,45518,18652,17981,6782,14402,24441,44863,28313,6609,34194,44875,18996)
Unknown column 'np.person' in 'where clause'