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 (17755,17556,17092,44854,45180,18301,44855,18279,44853,44878,45517,17756,44669,17237,6782,44868,44856,45277,17839,44671,28530,13922,6609,45515,30135,19078,44711,17278,30986,36472,45346,44775,44764,18650,44745,44870,24441,18446,31354,44687,24438,44765,45229,14622,44858,17114,18430,17335,17981,19057,17771,18996,18042,44865,45072,18185,16935,5410,13988,9341,17351,18652,44849,5993,3,45516,18894,24411,17848,39676)
Unknown column 'np.person' in 'where clause'