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 (17009,44835,28530,24441,44837,31354,44875,17839,39676,24411,18650,17556,45042,18572,37057,5993,17703,17601,45277,6875,17492,17848,17771,45043,44739,18279,45262,44762,24438,18185,19078,44711,30135,17278,45515,44640,19057,44687,18353,18719,37267,44768,44764,24412,16935,44767,17755,6609,17904,44854,16885,18688,8753,18172,4686,18900,45180,13425,44855,44766,44853,18446,3883,45421,44856,32454,22509,44873,45516,45286)
Unknown column 'np.person' in 'where clause'