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 (17335,45042,44836,17114,44768,18185,45518,43800,44762,45180,45072,9341,17556,17904,44848,4765,6782,18719,44669,45346,24438,37057,44689,17835,44766,18652,44869,16885,32454,45277,18353,45561,18981,28313,45051,17657,44866,22509,44875,45421,4686,44849,44863,44855,18650,6875,17351,18572,44858,17839,18430,18794,14402,44711,45262,44671,44767,44739,30963,28530,14622,13425,44764,17492,44745,44835,18172,24412,17009,30135)
Unknown column 'np.person' in 'where clause'