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 (24412,44863,17703,18894,18900,24441,45515,44848,44875,37057,44836,44775,44878,18572,44687,18794,19078,44837,14402,44851,44873,18353,5388,44766,6862,18430,44764,18652,10402,5259,44868,28313,19057,45180,45277,3883,17492,44867,17981,44858,30986,45516,18427,45229,44869,18648,14622,6875,39676,45346,17835,13,18301,45042,18650,44853,44767,31354,17657,45517,17114,30135,44762,44768,36472,45177,18279,44669,18172,44765)
Unknown column 'np.person' in 'where clause'