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 (44861,44866,44764,44669,18279,44768,18172,18650,17351,5993,13988,4765,45229,44762,3,45517,17237,44531,17092,19057,45042,18427,45180,28313,24441,37057,45072,44854,6609,18185,44837,18286,18430,44711,17657,44870,44745,45262,17835,17527,24412,31354,44856,44848,30986,45515,44671,44894,39676,44851,44689,10402,44845,17839,5388,43800,44868,44878,17335,44835,37267,14402,45277,34194,18648,45043,18894,44867,44884,44869)
Unknown column 'np.person' in 'where clause'