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 (17278,14402,30135,3883,45262,10402,32454,44739,44674,45043,34194,18042,24412,18794,17114,45515,44873,30963,16885,18446,17351,44836,45561,45180,44853,44854,4686,44671,22509,18430,18279,44866,8753,6609,44745,45421,5388,18650,17981,45286,45517,18353,13,44640,16935,44765,44855,18185,44685,17839,17556,44848,44867,44868,44687,45229,9341,17527,6862,4765,17335,18719,44849,44878,44767,18981,28313,44884,44768,18996)
Unknown column 'np.person' in 'where clause'