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 (44739,44863,45561,44775,44671,6862,17351,17527,44855,17092,17981,17237,44764,18650,44765,5993,18648,31354,44762,17839,44674,5388,45177,9341,45262,45516,44856,28530,45277,45043,44853,44689,24438,44685,19078,44766,8753,18981,18185,28313,45515,45517,45042,4765,17492,5410,17114,45286,17335,24441,13922,19057,18719,45346,44894,17756,44835,44865,22509,44845,17009,16885,45567,44851,44868,24412,5259,14622,44711,30986)
Unknown column 'np.person' in 'where clause'