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 (18894,37267,6609,18286,44873,45517,17492,45051,44836,18719,44848,18572,18427,45346,45277,44868,6875,24438,44745,44835,8753,44866,45567,18446,45042,44765,45072,13922,17556,44739,45561,44854,19078,24411,18981,13,17771,17237,5410,44875,18652,17839,32454,44863,18996,44861,18353,44768,17703,44767,18237,39676,28313,45180,14402,44766,44762,44855,9341,17755,44849,4686,5993,3,13425,6782,44640,45262,17114,18650)
Unknown column 'np.person' in 'where clause'