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 (44762,31354,45180,45515,44858,28530,44865,45072,17601,18427,17835,18794,14622,18279,44873,17839,17351,18301,44767,13988,16885,17771,18650,44836,44687,17848,18042,44671,44894,13922,44853,32454,44875,19057,45346,6875,9341,6862,45421,24438,17237,18185,24441,44863,17009,3,45518,45229,18237,44870,18981,44711,17981,24412,5410,18900,17335,45567,44861,18688,45517,44866,18648,17904,44854,44739,34194,13,17703,17657)
Unknown column 'np.person' in 'where clause'