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 (44865,45042,17527,45421,17601,45515,18650,18996,18279,17771,44711,44837,37057,18572,44835,17237,44768,17839,44745,13,44765,13922,44775,3883,44762,44687,17981,8753,30986,6609,45051,44856,17114,14622,31354,28530,45043,6782,44849,44853,30963,44875,5993,17835,44764,45518,19078,5259,17351,10402,45229,18719,32454,45072,18172,30135,24412,18981,45567,17904,24411,44863,28313,18042,44845,5410,44531,45180,45262,17335)
Unknown column 'np.person' in 'where clause'