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 (44764,44768,18900,17771,44836,43800,17114,17492,16885,45518,44894,24412,17556,5259,28313,17335,18688,31354,44687,18430,45561,18981,13,18446,44669,44861,44884,18794,45286,44685,44531,17351,18648,44775,18650,44745,44858,18427,5410,30963,44878,45177,45515,45042,18042,44711,32454,45229,19057,18353,45072,44866,3883,17237,28530,6862,24438,17009,44766,45043,24411,18719,10402,18996,17703,44762,44870,18286,44863,18237)
Unknown column 'np.person' in 'where clause'