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 (8753,3,44851,18353,9341,44685,44775,45043,44835,17848,44848,24438,44836,45177,17839,18279,44854,45051,44764,18430,18301,44878,18981,45518,44768,18688,5993,37267,17009,17556,19078,17771,44853,5410,18172,17092,45517,13425,18900,44687,10402,45515,34194,14402,45346,17601,17755,31354,44745,39676,28313,6875,17657,44766,44858,18648,16935,44689,44884,14622,4686,3883,36472,5259,44873,44711,18427,37057,18185,6862)
Unknown column 'np.person' in 'where clause'