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 (18648,17657,44853,19057,17278,44868,19078,18427,44671,16935,24438,28530,44762,16885,44849,6609,24411,14402,24412,45277,18430,18172,37267,6782,18900,6862,45515,44856,44640,44836,17351,17556,31354,44854,18894,44835,17755,5993,17771,44875,13988,17839,5410,44869,45229,18794,45072,18996,18572,6875,45042,44685,45567,10402,37057,17114,44878,44767,44855,18652,39676,44689,17703,44687,44870,17092,18446,28313,34194,17335)
Unknown column 'np.person' in 'where clause'