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 (45229,44739,17237,44875,44861,44764,45515,44711,44856,30963,4765,6609,17351,45421,44867,44858,44854,44775,44674,43800,24412,36472,45042,17278,44848,44689,44884,44762,45561,18237,32454,44868,39676,17771,18688,44768,44870,44863,28313,17335,10402,13,18894,37057,24438,45277,44766,18981,17601,44853,44894,18042,18719,18185,31354,16885,44855,44745,18652,18279,44866,17835,6875,13988,18172,19057,44865,17703,45051,44765)
Unknown column 'np.person' in 'where clause'