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 (44854,30963,17755,45262,44873,45421,22509,44894,44837,13988,43800,18353,30135,18894,18650,18237,24412,6875,44531,44865,17601,45051,18430,44878,45180,45043,45286,18172,18042,44765,44745,45561,17848,17981,4686,44764,18185,24411,17335,17835,44640,44858,44866,44766,17839,13,44856,16935,18279,19057,6782,44768,44848,45177,18794,17556,37057,17092,45517,18719,30986,17009,45518,18286,18572,6609,6862,17904,16885,4765)
Unknown column 'np.person' in 'where clause'