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 (5259,44531,17835,44884,44854,9341,34194,17556,45277,44865,14402,18185,44640,18301,18652,18427,44849,18237,44853,16935,17703,18719,45229,17114,44775,28313,17601,45567,45262,17492,45515,45346,18648,45518,44869,18172,44835,18794,44687,44845,44689,18900,18353,18650,45177,17904,45180,17657,31354,18894,44866,24441,24411,17351,45516,6862,6782,18688,44711,44739,13425,44894,17839,44669,18430,44856,44870,4686,44685,8753)
Unknown column 'np.person' in 'where clause'