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 (44853,44863,31354,44875,16885,3883,44884,43800,5259,18185,18648,5388,17657,44764,45517,44861,17835,44867,18172,44835,18279,18652,17771,44873,17092,32454,24412,30986,44775,13922,45286,45277,44837,18894,45515,10402,44765,17755,30135,44739,44878,18996,18688,17904,17839,18286,28313,44856,45421,44768,44845,34194,17981,28530,17335,45072,44836,16935,44531,45229,36472,44866,44711,44671,17351,5410,18650,19057,17527,44767)
Unknown column 'np.person' in 'where clause'