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 (17556,18172,44853,44766,44863,17703,44689,18301,10402,18719,45518,44739,45515,18572,44762,44745,17527,17657,44865,44837,18652,44868,18185,17092,18794,5259,6875,44669,44640,36472,44884,18650,45229,13922,43800,44858,44835,44849,6862,44855,4765,44768,44870,44765,45561,17771,18996,24438,24412,17755,45277,6609,18688,45051,18981,24411,24441,30135,34194,18427,45262,45042,45516,4686,44836,30963,44848,18286,13,17835)
Unknown column 'np.person' in 'where clause'