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 (44745,16885,44835,13988,45262,44674,44894,18900,30963,6875,13,18430,5388,45277,44768,6609,5410,18172,6862,18650,39676,24438,44861,22509,17703,24441,17335,45515,18237,17278,45516,44836,17835,18572,18996,44867,17351,44671,8753,44767,44711,17904,44837,45180,30135,14402,44854,4686,13425,18427,30986,43800,18353,44849,45421,17755,37057,28313,18794,44531,45346,44856,17657,17556,45567,44762,9341,45177,31354,45043)
Unknown column 'np.person' in 'where clause'