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 (32454,22509,44853,44861,31354,24438,5993,10402,6875,45043,17981,18237,44764,6782,17335,45262,13988,44836,36472,30135,18301,18648,44873,44884,17278,44765,30986,44669,44685,18446,18996,44855,45567,44854,17839,30963,44851,17755,18279,45517,44845,28530,44687,44671,14402,18353,45515,44767,5410,45518,18894,44745,44894,18719,17771,6609,39676,44869,44849,18172,17904,44768,45286,18652,17835,44762,43800,18430,24412,44711)
Unknown column 'np.person' in 'where clause'