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 (30135,45229,44866,13,17904,10402,17237,44873,18688,14622,17981,18572,30963,44764,44669,17009,18237,18719,45516,44878,45567,44870,44531,37057,44671,18301,18446,45042,28313,45286,17756,17601,3,5410,8753,18427,44856,6862,39676,17657,44865,44835,18996,24412,45515,17278,45346,18286,44855,17755,44689,44869,44861,18042,13922,28530,44836,18430,17092,24438,19078,18900,6609,18981,44868,44711,44848,13988,22509,16885)
Unknown column 'np.person' in 'where clause'