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 (5410,18794,18172,14402,18572,45561,18430,44851,44765,9341,45043,17981,24412,44861,17351,44640,44835,17278,3883,31354,37267,45567,24411,5388,44768,44853,18427,6862,44858,6782,17839,6609,45262,5259,18650,4765,44866,17556,39676,16885,44764,17601,44884,32454,44865,44671,17756,18648,24438,18900,44863,44856,6875,24441,45229,4686,28313,44870,44836,44837,8753,18279,44855,43800,17755,44762,19057,44685,18237,18301)
Unknown column 'np.person' in 'where clause'