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 (18185,44884,44867,13,44863,13425,45517,30986,45180,44870,18237,18042,45518,10402,17556,44875,18981,5410,17335,44835,13922,17839,17278,44674,6862,44856,18301,16885,44531,44775,45042,44853,17755,18894,17981,44669,17351,45567,14622,44861,5259,45561,45177,45072,44739,44689,45421,13988,19057,17092,43800,44711,44851,18572,44878,4686,17771,17492,6782,14402,44640,37057,18430,44766,18427,24441,24411,44685,4765,44858)
Unknown column 'np.person' in 'where clause'