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 (18996,45346,44745,45051,22509,18353,44856,19057,44869,44768,44863,44685,18794,44762,44775,9341,34194,14622,18446,30986,45043,17904,24438,45286,17492,45517,39676,16935,30963,45561,18301,44854,6782,44765,4686,44894,18688,14402,18894,18981,5993,13425,6862,44845,24412,44867,18279,17657,37267,44873,44884,28530,19078,18427,10402,18430,44671,44853,44711,45515,44868,18650,45072,44836,44767,44878,45277,24441,32454,18172)
Unknown column 'np.person' in 'where clause'