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,45072,44867,18301,10402,44848,44875,24441,18794,36472,45180,17335,45042,22509,17278,30135,44687,44739,18430,6875,17771,44674,31354,13988,44861,45043,44869,30986,45517,17237,44866,16935,17835,13425,43800,37267,45421,18894,18650,44669,44768,17556,45177,5388,44873,44766,18279,19078,45346,44689,6862,18572,17009,19057,18286,45515,18427,44531,44671,17092,28530,30963,13,6782,18981,44685,44868,18719,17904,44858)
Unknown column 'np.person' in 'where clause'