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 (45180,45346,17835,44875,18894,17492,45177,44870,17601,5993,18446,18427,17114,6862,44640,44711,17771,17904,24438,17839,45042,44764,44767,44689,44878,3883,44858,44855,44685,31354,6875,45286,45515,9341,17092,44745,6609,44835,14622,18286,17981,18996,44762,44853,19057,18042,17848,17756,18652,5259,44687,44775,44768,45516,45518,22509,17755,37267,44856,45421,17351,36472,44873,44869,45262,37057,24412,18237,44867,13425)
Unknown column 'np.person' in 'where clause'