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 (18652,17492,19078,30963,17601,44858,45072,17278,45286,45042,37267,16885,45516,17703,44853,18279,44764,44671,14402,44766,17981,18981,18185,5259,18996,3883,44848,13988,13,30986,14622,44689,18650,17335,45517,28313,44851,18688,18648,6862,44640,28530,18794,44739,17771,6609,18430,18446,5410,17351,44855,45567,17114,19057,18427,17904,17657,18237,10402,39676,18894,24411,13425,44849,17556,44865,45051,45515,17237,24438)
Unknown column 'np.person' in 'where clause'