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 (24441,44866,18279,18446,4686,13988,17092,44768,28530,24438,45567,45515,44837,18237,45043,10402,6782,45051,44845,44853,45286,44764,44869,45561,44884,18572,43800,45177,44745,44858,17556,5259,44775,18172,17527,5993,17756,44854,13425,44711,17492,31354,44674,44766,13,45229,17981,44762,17835,3883,18719,6609,18981,45262,44868,44836,8753,44851,24412,13922,17335,44875,44873,3,17703,19078,45346,18430,44865,17009)
Unknown column 'np.person' in 'where clause'