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 (44849,8753,19078,44867,44669,18427,17335,45346,13425,45518,44762,44865,30986,18185,14402,24411,9341,44868,44858,5993,45051,44671,17848,17756,44689,44875,3883,32454,17009,18172,44863,6609,44674,6782,44745,18430,18279,18996,45515,24438,17492,18650,17092,44765,31354,18446,45177,45561,45277,17527,13,18981,44711,5388,44848,18301,10402,45072,28530,17904,18719,44856,44869,44836,17657,45421,17114,6875,18894,5410)
Unknown column 'np.person' in 'where clause'