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 (44689,36472,17848,18572,44861,22509,45072,44711,44884,13425,18894,18794,45051,4686,44865,44855,44854,19078,6875,18648,17237,18301,34194,18430,39676,17839,13988,45042,32454,17009,44867,44869,44671,6782,17904,44870,5259,17756,44765,44768,44674,6862,5388,18650,44848,45515,18688,17981,19057,44849,31354,10402,44640,44766,44836,18172,44866,18427,44894,37057,18353,24441,18996,44837,44856,5993,30963,4765,44739,17492)
Unknown column 'np.person' in 'where clause'