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 (18286,17848,17492,10402,44775,6862,17527,44894,5388,17756,44531,45421,4686,17092,13,44856,44851,44689,44854,24441,44875,44835,34194,3,32454,6782,44768,18900,37267,44878,44711,16935,18719,44745,44855,17335,44849,17601,14402,17755,17009,45042,17351,44674,31354,45043,18572,44845,18185,44762,44865,43800,17114,45346,44765,8753,28530,45515,45567,30963,18301,44868,17904,44837,44767,3883,18353,44861,45177,44867)
Unknown column 'np.person' in 'where clause'