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 (45043,6875,45346,31354,17009,5388,18572,39676,45421,18353,17556,6862,9341,44687,17601,45072,5259,17981,44640,44865,44768,18279,44764,14402,45567,17756,17278,18172,44853,45177,37057,8753,44685,44854,24438,17237,17771,44878,16885,44851,45516,44739,18042,3,44762,18427,19078,13425,44869,18981,45277,18446,18237,24412,6609,18719,45561,16935,44767,44775,43800,44531,44856,44866,18894,14622,44867,44861,28313,45262)
Unknown column 'np.person' in 'where clause'