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 (45518,6875,44873,17601,44870,18900,44767,44854,45515,45277,45517,44836,44671,44669,36472,4765,44687,45561,44858,44865,45072,14402,18996,19057,44689,44853,28530,43800,32454,44845,39676,18042,24412,5410,18286,44835,6782,18279,18981,14622,45051,44762,44837,24441,44875,9341,18572,17848,18794,44869,17278,44848,17904,16885,13425,44868,30986,13922,10402,17771,24411,8753,45042,17527,44765,18719,22509,3883,44768,44764)
Unknown column 'np.person' in 'where clause'