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 (17278,44873,44711,45177,19078,5410,39676,5259,44689,6862,45515,17771,44854,18572,18279,18286,18894,13988,18652,18427,34194,17981,45042,17351,36472,44861,32454,44853,17839,18719,44863,18237,10402,24411,37057,9341,4765,45229,16885,17556,44884,3,17835,22509,44868,17657,45262,18981,17703,19057,17492,14622,44768,30963,18446,6782,17601,44640,6875,44766,31354,18794,18688,44775,24438,13425,17114,24441,44674,45517)
Unknown column 'np.person' in 'where clause'