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 (44869,44851,18301,45515,44845,14402,18446,22509,24441,17335,17092,44853,44875,18794,17237,6862,18572,44865,44837,13922,44689,44849,43800,44848,44878,18688,44884,44762,16935,17771,5993,30963,18996,8753,17703,45518,17278,18185,17981,5388,18894,44711,5259,34194,44866,16885,44640,28530,17848,3,18427,44873,44765,44854,44855,17527,44674,4686,45517,24411,44858,45516,44775,18981,44767,4765,6875,17009,18719,18286)
Unknown column 'np.person' in 'where clause'