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 (18301,44835,44870,24411,18237,18185,44861,6782,44878,17835,24441,8753,17601,13425,45043,18719,45346,18894,17703,44766,45517,17848,18286,18042,44745,17351,44854,45518,44689,17657,9341,17756,18650,44711,44764,44767,18981,18794,37267,17527,18572,17492,13922,45177,30963,36472,5410,5993,44768,18688,17771,44856,28530,44848,18279,45286,19057,44851,18172,44863,44867,44531,6609,18427,45515,17009,44873,17839,18353,18996)
Unknown column 'np.person' in 'where clause'