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 (28313,44865,24438,18172,44853,44894,45072,18427,14622,44765,45561,45177,6875,10402,44739,18688,45277,44768,17756,18286,18794,45346,17114,17092,45518,18430,24441,18042,37057,6782,18301,30986,17492,44868,45567,28530,44836,44884,44858,18572,18237,37267,18185,44855,44837,44854,6609,5410,44878,44856,4765,45421,13988,17556,44669,39676,44671,18900,17835,17009,18650,30963,44873,24411,36472,3,44845,45262,43800,44775)
Unknown column 'np.person' in 'where clause'