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 (17351,44766,5993,18353,39676,28313,17904,31354,6875,44764,18430,30963,32454,5259,18996,18301,44768,45515,3883,37267,44875,17009,8753,18172,18286,18981,28530,9341,14622,45346,18042,44878,13,45517,16935,17092,3,18237,18427,36472,43800,17601,44865,10402,44884,44669,17839,44640,4765,45262,18572,22509,45051,45229,44870,24412,44674,45177,44894,18894,44856,44745,6782,17492,17756,44689,17114,13988,44854,45567)
Unknown column 'np.person' in 'where clause'