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 (9341,5388,45517,16885,44854,45346,17756,45177,44856,44849,44711,30963,44855,18427,44865,5993,24441,44836,44764,45229,18900,18279,17981,17092,44861,17839,10402,44689,6862,4686,45515,17771,13425,44851,34194,17556,18237,5259,16935,44863,3,45421,18650,44878,31354,44853,17335,44837,18286,5410,24411,18172,18042,44745,44687,45180,44765,24438,18572,45072,18301,17114,44894,43800,6782,17009,18353,45051,18446,45277)
Unknown column 'np.person' in 'where clause'