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 (44671,18042,17981,17703,24438,4765,44711,44861,45516,44863,34194,30963,17351,45177,18688,45518,30986,18650,8753,18648,17114,24412,28313,5993,24411,45286,44767,18900,17835,16885,36472,28530,18652,19078,44873,18237,44745,17009,44775,44865,45277,17657,45567,6609,44870,44878,3,45051,44687,17092,37057,44685,17848,5410,6862,37267,44531,45515,16935,18894,44868,14402,17756,45072,6782,13425,44669,18996,18430,18427)
Unknown column 'np.person' in 'where clause'