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 (17351,44739,30986,4765,45051,44711,6609,44848,5993,18430,34194,14622,44875,44845,18794,45516,24441,44689,44835,44861,18446,44764,45042,18648,44894,44854,3,13988,44762,9341,17848,18996,6782,45561,13,31354,45072,3883,17703,44765,19078,13922,44745,17114,18981,45180,18185,44768,8753,44856,17556,44863,44873,28313,14402,17009,17492,44674,16935,39676,44687,18900,45262,44866,30963,13425,44767,45567,32454,17601)
Unknown column 'np.person' in 'where clause'