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 (17835,13988,45072,18279,6782,44836,45515,32454,14622,18719,44875,45177,13922,44711,18185,44878,30135,17237,44870,18650,44764,44845,44853,17092,44531,45277,45051,18353,45517,18981,18301,44739,17981,45286,30986,10402,18446,17335,45043,14402,44669,24411,17848,44856,44640,18427,17904,44849,44762,44775,17703,45346,3,44863,30963,44768,17755,39676,28530,13425,5388,17756,6609,6862,17527,45518,31354,17492,44685,37267)
Unknown column 'np.person' in 'where clause'