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 (44766,18572,24412,44689,14402,44768,44845,45421,44762,30963,18900,18652,10402,45286,18446,44884,44836,44878,13922,45277,17755,17839,18894,6875,17009,44858,4765,32454,18427,45262,18794,45567,39676,44640,44775,44848,45042,17848,24441,28313,17756,17981,44767,4686,18042,45516,17351,18981,45177,44855,44856,45518,45561,45515,43800,44866,5259,5388,44669,44739,3,19078,17657,44875,18279,17771,30986,44853,44837,17527)
Unknown column 'np.person' in 'where clause'