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 (45515,30986,17114,43800,18981,45051,17756,17981,34194,4686,45346,18185,24438,44766,6875,18430,24441,17278,44861,44835,45567,44765,22509,3883,45286,44745,44531,24412,45262,6862,18042,44849,18719,44674,44764,44711,16935,18688,45561,32454,17755,44767,18650,45277,17492,18279,17092,44762,45516,18172,44768,24411,4765,37057,5388,44687,18572,44845,19078,9341,36472,44869,28313,10402,6609,45517,18894,18427,39676,45229)
Unknown column 'np.person' in 'where clause'