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 (18688,44863,44865,44869,6875,3883,18996,5259,17278,44866,44849,14622,6609,44854,30135,37267,18279,16935,18042,44640,45043,44884,18572,18237,17839,18172,45561,19057,18652,45177,34194,44870,44765,45229,44867,10402,17351,9341,18719,31354,44878,14402,44848,17771,44855,24412,22509,4765,32454,45421,45567,44853,13922,5410,19078,45277,39676,17835,44669,44689,17657,24441,44764,17556,5388,44711,45515,17756,44856,18981)
Unknown column 'np.person' in 'where clause'