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 (18981,17092,10402,37057,18996,45043,17981,44894,44835,44869,45277,17848,24438,18237,17835,39676,34194,44866,5259,44531,45518,18650,44849,43800,45516,6862,18446,44739,44687,18648,18430,45229,28313,45042,3883,36472,18652,44848,45072,22509,45177,44766,44669,19057,44853,44689,17009,17351,45567,45286,44674,44855,44861,44768,44762,44878,18286,24412,17771,44671,17278,45421,13,44868,5993,44767,45561,30963,17556,17601)
Unknown column 'np.person' in 'where clause'