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 (17835,24438,6862,6609,17492,18652,45277,44762,18430,30135,44845,18446,44689,18996,17703,44767,5388,17839,45262,13988,44768,18185,17527,17092,44856,37267,45421,4686,44884,16885,19057,17114,17278,44765,44669,18353,28530,44837,34194,44640,44868,44858,22509,44764,44745,45043,18981,45567,17556,17848,44878,45051,17335,44766,44674,18301,44861,13425,30963,19078,30986,44531,9341,18572,18719,18042,45518,5259,13,45561)
Unknown column 'np.person' in 'where clause'