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 (6609,44640,18794,45346,45262,17556,10402,44868,18042,24441,44764,18650,24438,45229,44878,17839,44765,16935,44775,18353,45286,43800,18446,17771,18996,32454,17755,45043,5259,45518,44848,18894,39676,18185,24412,44739,4686,14622,44853,44767,8753,14402,17835,28313,44531,34194,45421,17492,44836,17335,44869,18286,44875,44766,44837,28530,18172,13988,44858,13,5410,30986,18237,24411,18572,45177,44674,19078,44894,18279)
Unknown column 'np.person' in 'where clause'