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,44775,44861,45517,18794,44835,3883,5388,17755,45516,17527,44671,22509,44884,31354,17351,14402,17601,28313,3,17981,17771,45518,18996,45286,18894,8753,13,37057,44762,44853,44689,28530,44768,24412,37267,44894,44854,18353,17237,9341,44870,44868,13425,18172,13922,30963,17839,24438,44685,17756,44848,44674,44640,19078,44856,44878,18572,44869,17904,10402,43800,44875,36472,18981,18286,44837,44764,18427,6609)
Unknown column 'np.person' in 'where clause'