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 (44531,8753,44863,44878,17335,45421,18185,3,34194,45043,43800,44868,44854,45277,18279,45518,44836,18900,17755,24441,45515,17904,44711,45180,44849,44848,17601,17492,45051,5388,44873,18353,24411,17351,16885,45229,6862,18996,14622,4765,6875,44640,44884,44764,6782,18446,44853,19057,3883,44765,45177,44856,44894,30986,45262,44745,44869,44689,4686,45072,17237,45042,18172,16935,36472,45561,39676,44866,18648,9341)
Unknown column 'np.person' in 'where clause'