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 (17114,17492,8753,44836,44854,18650,45518,18996,28313,45042,18430,44870,17756,17237,16885,45043,6875,44768,17835,44861,44845,44863,24441,17981,3883,13988,45072,31354,44766,18894,45515,45561,18286,18648,6782,18981,3,44767,45516,44873,4686,28530,17092,44856,44835,18279,44865,30963,44531,18042,44851,5410,45229,44687,34194,18301,17771,18719,18172,17556,24411,17657,44745,44711,44894,44878,45286,6609,44764,17703)
Unknown column 'np.person' in 'where clause'