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 (17556,44866,45051,44685,18172,44878,45286,13,45515,3883,18279,44855,17351,31354,44870,44687,18894,18652,24438,45567,18688,34194,16935,44863,44869,8753,6609,44873,19078,18427,17335,44848,18286,44894,44861,44849,30986,30135,6862,44853,18446,45518,17755,44669,17009,44875,45517,6782,17981,45180,45516,17278,39676,3,5259,17092,44837,18301,17114,18430,44640,44764,5993,44689,45561,44745,5410,18185,28530,14402)
Unknown column 'np.person' in 'where clause'