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 (24441,44845,14402,18894,44745,36472,17351,18172,45567,37267,17703,17981,44671,44849,5388,17771,44674,45518,44739,22509,18427,44766,18648,45262,44685,45051,44868,30986,44775,44855,16885,45042,45516,14622,44884,30963,17755,8753,5410,44866,18279,44870,17848,13,4765,24412,44894,24438,44863,17335,3883,18650,44878,4686,6609,18981,44865,44768,18900,13425,13922,39676,45346,45043,44861,13988,30135,5993,17237,6862)
Unknown column 'np.person' in 'where clause'