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 (43800,18900,18427,44858,19078,44878,45229,17351,18996,18652,5410,24438,44868,44854,44640,44861,17009,44764,22509,44711,44894,44851,4686,17771,44884,5259,6609,18430,44687,37057,45262,32454,18648,17835,44531,18794,45051,44835,14402,44766,36472,44674,5993,17657,17556,44739,17904,44853,18042,4765,44845,37267,17335,17237,18572,45072,44689,24441,17492,44836,44671,17601,45518,13988,17092,10402,45561,17848,44866,45567)
Unknown column 'np.person' in 'where clause'