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 (5259,6782,17237,45567,5388,30963,17278,17556,17755,6875,44739,44869,3,17009,18446,18719,28530,6609,13922,44865,17756,45072,44640,45516,17657,39676,18981,14622,13988,5410,44745,45346,44835,44878,30986,18353,8753,44861,18042,18900,18572,44762,30135,44768,45043,44685,18185,45229,17335,44866,44764,44867,45042,17114,6862,44531,31354,37057,5993,3883,13,44836,45051,17904,44767,44837,18688,17839,44894,18794)
Unknown column 'np.person' in 'where clause'