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 (17839,44867,18353,6875,19057,44764,18794,13988,34194,5259,10402,18719,44689,17009,17904,4765,45180,17981,44854,44873,44739,5993,44711,18286,8753,44878,28313,44669,44685,18648,44868,17492,44766,17092,17527,44869,45072,31354,44849,37267,18900,44851,18572,6609,17755,17703,44875,17335,17657,5388,13922,44671,13425,3,45277,18185,44745,24411,45517,44870,36472,44765,17114,43800,17278,44894,3883,19078,44845,44768)
Unknown column 'np.person' in 'where clause'