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 (10402,17351,18237,18042,18981,19057,45561,44849,45051,17335,18996,44878,30135,44868,44866,6609,3883,44711,44640,44687,13988,44685,44858,17278,17092,44848,44767,9341,30986,45042,17114,44745,36472,24412,6875,17657,5388,44867,44851,31354,45286,18572,5993,32454,18648,18688,44853,44861,44766,44531,17839,24411,44765,6782,18301,44855,44762,44873,14402,44894,17771,28313,44689,16885,17848,3,44837,18894,4686,44884)
Unknown column 'np.person' in 'where clause'