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 (45051,5388,19057,44669,44767,24411,44851,16885,22509,44765,30986,44866,44745,18688,17278,45561,44854,8753,44894,6862,19078,18719,5410,44878,17092,44687,44849,5993,44766,44762,44853,17601,17114,18894,30135,17755,44863,17009,39676,44848,17756,44835,45277,44689,3883,45421,6609,44764,6782,3,44768,18172,45517,18446,44869,18648,17703,14402,45516,44711,45567,44867,18900,17848,24412,44884,18279,45515,18185,45346)
Unknown column 'np.person' in 'where clause'