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 (44894,17492,30963,44768,44669,44711,44868,44878,18900,5410,17756,17114,17278,44861,16885,3883,44858,8753,31354,45286,44856,39676,17335,44687,36472,17556,17527,24411,18279,45346,45177,45042,18719,45515,45277,44762,18353,44689,24438,16935,17981,44764,32454,45051,30135,13988,30986,37267,3,13,17601,18996,18648,44875,45561,18572,44745,18286,45516,28530,18446,18688,5259,44884,9341,18794,44739,44870,17771,18172)
Unknown column 'np.person' in 'where clause'