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 (45567,18900,17904,44764,19057,18648,18427,44739,44687,44674,44848,45518,44671,44689,17092,5259,44640,44685,44837,17335,44854,44845,45277,17771,44762,17114,39676,17657,44869,37267,45421,44745,18430,17527,44767,44867,18353,17009,32454,45262,44875,18688,19078,28313,14402,6862,44894,5388,45051,45516,45515,18185,17755,17981,18981,44873,44861,18650,10402,18042,22509,30986,6782,45180,17848,5410,4765,13988,8753,18446)
Unknown column 'np.person' in 'where clause'