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 (13425,45177,18446,17009,4686,10402,44745,5410,4765,32454,18172,17278,44853,17237,18648,44687,6875,44764,17839,44685,45072,19078,43800,24412,5993,17492,28530,18279,37057,24441,6609,17904,9341,14622,18894,44866,17756,17771,44869,18688,30963,19057,44856,14402,16935,44894,17848,45043,44849,17835,44861,45516,18572,44870,44858,45286,17556,24411,17755,17657,45262,44767,44837,18996,44669,17601,18430,44711,17335,18353)
Unknown column 'np.person' in 'where clause'