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 (44687,44878,28313,45277,44685,30986,18237,32454,44669,5388,17835,44848,44768,24441,44775,45229,5993,44865,44745,17771,18430,6862,45421,5259,44762,6782,18688,18981,17114,44855,17657,18301,24411,18427,14402,17492,44884,18572,45072,18042,44867,17981,39676,45346,18794,28530,44875,44837,44866,44868,45517,18185,45262,8753,44861,45177,16885,6875,44873,17904,5410,24412,17755,44765,45561,18996,4686,10402,45518,30135)
Unknown column 'np.person' in 'where clause'