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 (17092,44674,18042,44866,18572,17835,36472,14622,16935,3883,44669,44845,18894,45051,45177,44867,44765,19078,18172,37057,4765,45346,24411,17237,5993,45286,18279,10402,45042,17601,18427,44858,18648,45567,5410,44835,45517,43800,44854,17278,4686,30963,13988,44855,44853,37267,17848,44687,45516,6862,17335,44775,45180,44849,45277,44848,9341,6875,16885,44875,17981,44640,30986,17703,44685,17657,3,18688,17351,44894)
Unknown column 'np.person' in 'where clause'