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 (17981,5410,44764,24412,18172,28530,44884,44762,44855,18427,44845,44865,44861,6862,17904,18353,18981,44739,44853,45043,45229,45518,30135,43800,6782,44837,17771,19078,17703,36472,17601,18237,44869,18572,44835,44856,17335,17492,13988,24411,45516,17839,18900,17351,30963,18996,39676,44531,18650,44878,45180,17848,18279,44767,44851,17278,45051,18042,31354,13,44894,32454,17527,44863,4686,14402,3883,16885,44766,45072)
Unknown column 'np.person' in 'where clause'