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 (45517,44869,4686,18648,3,18981,22509,44894,44767,18572,44762,44768,17492,17335,44851,19057,18719,17839,17771,44685,18688,17556,44775,13988,44868,45421,24411,18650,44745,45042,45277,17848,18286,28313,19078,18446,6862,44865,5410,18353,44766,44861,44867,18427,30986,17278,44875,44669,5993,18894,9341,44878,18172,45567,3883,18996,16885,6782,45516,4765,5259,45051,24441,44866,45229,17703,44764,45518,17114,45177)
Unknown column 'np.person' in 'where clause'