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 (44869,45180,44867,6782,18650,44835,28530,18900,44894,17278,17755,44878,17771,18427,13425,5410,31354,17351,6862,44687,44768,3,22509,18185,9341,45515,44767,18286,18688,45051,44849,36472,44766,30986,45516,18042,44861,13988,19057,45517,44884,17335,39676,45072,16885,44775,24412,17237,24441,18430,17657,44865,37057,44764,13,32454,44875,18648,4686,5259,44858,18279,17556,10402,24411,44848,44669,44685,44866,18719)
Unknown column 'np.person' in 'where clause'