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 (17492,45286,44762,6875,8753,44868,17771,18648,37267,13922,18688,17527,18353,44765,44869,16885,44669,5388,44854,44865,18894,44531,18650,6782,44848,45180,18719,18237,3,18279,44849,45516,17114,18572,4686,22509,5993,44894,5259,44836,44775,44873,4765,45561,18794,24412,17839,24441,13,18981,44671,44855,17009,17981,18286,44878,18427,44685,19057,44764,18430,44861,34194,44766,17278,31354,18185,18996,17848,17335)
Unknown column 'np.person' in 'where clause'