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 (44845,24412,18430,45043,44775,44873,44689,17009,17755,45567,44531,17092,44669,45262,44868,6609,44685,44745,44861,17771,18237,44674,14622,5388,44768,18446,44869,18572,44835,17278,31354,18719,28313,44856,44767,44853,17335,45517,45286,45518,44687,44766,24438,18279,17114,44851,18900,44870,13,18688,37057,32454,6782,44739,18185,17981,17556,39676,5410,45177,45515,44764,18286,17657,44866,18650,6875,17527,44854,18996)
Unknown column 'np.person' in 'where clause'