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 (18172,30986,17703,18353,13922,6609,44835,17092,44685,44894,17756,19057,44765,44865,44767,30135,32454,44766,13425,44764,6782,5410,44855,18648,17771,8753,17492,44845,19078,44762,45229,44878,45051,18430,45518,17556,44856,45567,45277,44858,18894,18301,17981,18719,44884,45042,44869,17755,44837,17839,18652,44867,4765,24412,45180,44745,28530,14622,45346,17601,44861,44739,44848,44836,24441,17335,31354,37057,30963,44674)
Unknown column 'np.person' in 'where clause'