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 (4765,44767,18572,14622,18900,44884,24412,5388,17335,3883,13425,17756,39676,45561,18042,3,45262,44894,44858,18237,44865,17114,19078,44775,17839,18894,17351,45229,45177,24438,44875,18688,17703,18446,44845,17657,44687,45518,44878,19057,28313,17755,30963,45043,13988,17771,13,17237,4686,18794,44867,44854,16885,18286,30135,17278,44866,45051,17527,44870,45516,34194,18652,44711,5259,18996,44848,37057,44531,10402)
Unknown column 'np.person' in 'where clause'