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 (45072,45421,24438,45180,18572,44878,44855,18794,17556,17335,18042,17092,17114,31354,17981,44870,45346,6782,17756,3883,18652,24441,45561,17527,17009,44884,44851,44531,17237,44854,45043,34194,4765,18650,19057,18427,18286,28313,39676,17835,6862,44767,17601,18446,44845,44835,5993,17904,44849,18172,44848,44689,5410,18719,44853,30963,16935,18894,17278,14622,30135,45517,18996,24411,44640,45177,5259,8753,44875,44745)
Unknown column 'np.person' in 'where clause'