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 (30986,24438,44861,45286,17492,19078,45277,18572,44854,37057,17839,17848,17835,28530,5993,14402,44531,45567,18688,44739,44853,17601,44845,18719,45421,9341,45516,44762,32454,34194,3883,17009,18427,44884,44851,44868,18794,6782,14622,39676,6609,19057,45043,24441,3,37267,18446,18237,45229,31354,4765,18353,18279,18894,44894,44745,17114,45346,44640,44858,17556,45177,18996,22509,44836,17237,44685,36472,5410,30135)
Unknown column 'np.person' in 'where clause'