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 (24438,17981,45421,6875,18652,44865,44894,44878,10402,6862,44866,6609,44863,44845,28313,32454,18427,44671,45286,44848,17009,17839,18688,44855,17237,18719,18430,45277,44711,44854,17601,4765,44867,44762,44764,44739,45043,18996,24411,45515,3883,18446,44836,17755,17771,45177,18237,17703,45229,45180,17556,9341,44835,18286,44767,44685,5993,44765,45051,44869,24412,17657,44849,44870,45561,39676,24441,5388,44873,28530)
Unknown column 'np.person' in 'where clause'