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 (17904,13922,13,17848,44868,18650,17492,45072,45043,39676,5388,18279,45262,44861,18301,17839,31354,44863,5993,18719,17556,45518,9341,44767,44762,44875,19078,44854,30963,44866,44848,18981,43800,22509,17756,5259,44870,44531,44873,44865,36472,16885,6862,44837,44835,44855,45042,37267,18894,44689,45180,44711,45421,44856,18427,18996,10402,37057,44869,17527,19057,45346,24441,17771,6609,18430,4765,45177,14622,45516)
Unknown column 'np.person' in 'where clause'