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 (13922,44835,5259,19057,44856,45515,18650,32454,17114,44689,18353,44870,4765,44873,44765,14402,44766,44745,45286,17755,22509,45517,9341,17351,19078,13425,44858,44894,17657,44866,37267,45177,18652,31354,18430,18996,44711,17771,6782,44531,44853,44775,5993,18286,18719,44875,44855,17904,44640,17839,45277,45051,18894,18900,44674,18237,10402,18279,24438,44685,17009,45518,44854,45229,45043,44669,34194,44671,45042,17981)
Unknown column 'np.person' in 'where clause'