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 (24441,44767,44853,44845,9341,44671,4765,4686,18237,44745,45051,6862,44865,13425,44711,44858,18719,18286,18900,16935,17756,17601,30963,17848,44669,19078,39676,8753,45515,45567,45518,44837,14402,44856,45421,17278,17657,44689,37057,17835,44873,18794,44869,45262,5993,19057,44878,44765,44835,44687,18353,45042,44863,30135,44884,17114,44848,44768,18172,34194,18572,45277,14622,17351,18648,45346,44531,6782,17009,17839)
Unknown column 'np.person' in 'where clause'