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 (45042,44884,17771,13,18301,19057,17237,17981,18900,44845,45277,44671,44775,44689,44685,44835,44764,44745,17756,18652,19078,45567,22509,18237,45229,45180,44674,39676,45072,45051,18894,17755,24412,44861,17835,45518,18279,44767,45177,18648,14402,13988,44853,36472,44868,17492,30135,6609,17335,44856,18719,13425,28530,17904,24411,17839,4686,6875,18185,45346,4765,18430,44894,44531,17351,44836,44768,44863,44869,44878)
Unknown column 'np.person' in 'where clause'