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 (44866,44765,45051,19057,28313,44869,45421,44689,44858,31354,45286,6609,44868,44848,17756,14622,34194,13922,24441,45567,44745,18794,37057,17335,30986,45561,30135,18353,44762,32454,14402,44531,5993,18652,45177,44861,45277,44739,22509,18650,6782,17835,44865,24438,5410,18279,3883,44856,37267,4765,18286,44849,18301,44863,18981,44870,5259,44775,45072,18446,16935,45180,18237,17278,44853,13,44854,17904,39676,17771)
Unknown column 'np.person' in 'where clause'