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 (24441,13425,44875,44766,16935,13922,18719,17278,8753,22509,44762,44739,32454,13988,44858,44894,5259,5410,44745,44531,44775,17657,24412,18652,44865,6862,44869,5388,44866,44878,44873,44868,17237,37267,45517,45277,4765,45346,17092,18996,13,18172,45042,44854,34194,17703,44671,14402,18353,44685,45262,18572,45515,18185,19078,44845,44861,44764,44640,44836,45286,45043,24411,31354,4686,17756,18427,44855,39676,10402)
Unknown column 'np.person' in 'where clause'