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 (18894,45518,4686,44845,18900,44849,18794,9341,45286,17009,44671,18430,18353,18652,16935,45561,45177,13922,17756,44878,6875,44745,18648,17981,44836,44689,44775,17848,44765,17556,45421,44861,10402,24411,44884,17237,45515,18185,17335,31354,44851,30135,13425,45517,5388,5993,44856,6862,6782,19057,18301,44766,8753,45043,3,44867,43800,28313,37057,45229,44674,44762,39676,19078,24412,18719,14622,17703,17771,44873)
Unknown column 'np.person' in 'where clause'