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 (44875,44873,45346,10402,17492,17755,44856,44764,36472,45286,18301,44768,18353,17703,45567,13425,44674,44745,22509,18894,32454,18185,45180,43800,44689,16935,17981,17904,44851,18430,45051,17657,44640,45229,44861,18794,17092,28313,18446,13,24438,3883,45421,44866,6782,45072,44878,44845,45515,44868,18572,19078,17601,45517,17237,17848,44669,17835,5410,6862,18981,9341,17114,44853,5388,44858,13922,45518,13988,45516)
Unknown column 'np.person' in 'where clause'