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 (45515,17237,45043,44836,18894,18981,44858,44689,18042,17351,17114,16885,9341,16935,5410,6875,18353,44870,17904,4686,24441,18446,17981,45516,24411,6609,36472,17703,45421,44868,45042,44766,45180,45567,44845,13922,44837,18688,44894,44687,17278,32454,17756,18648,18427,18650,8753,5993,17839,13,45518,44745,18185,18996,45229,18301,44674,14622,44764,44669,17835,30963,5259,44866,19078,45072,24438,44855,44775,45517)
Unknown column 'np.person' in 'where clause'