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 (18996,44863,45346,45042,5410,44640,8753,17237,18279,44878,44762,43800,31354,44531,28530,44861,45561,28313,17771,9341,44869,5388,4686,6782,6609,18286,44836,44689,17755,13922,45286,30986,44868,17904,44739,6875,18237,24411,18185,17556,24438,44873,18446,3,45516,6862,17756,18719,18794,44835,30963,5259,19078,44764,44669,17351,17703,44853,5993,18648,39676,19057,18900,18981,45421,3883,45051,36472,44856,44671)
Unknown column 'np.person' in 'where clause'