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 (45421,44884,18652,45180,44768,30963,44685,45346,6609,6782,45051,44894,44745,45286,17556,44671,44867,44687,44873,45277,44853,36472,14402,45043,44865,44674,18185,45177,32454,45561,44878,6875,45515,18353,17351,44854,5259,5410,45229,44766,18794,44764,22509,10402,44711,43800,17601,24441,17848,18430,17492,3883,17839,44762,18301,44836,16885,44837,18286,17835,18572,13988,4686,39676,44851,18427,18996,44689,44856,45567)
Unknown column 'np.person' in 'where clause'