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 (44669,18185,44685,43800,14622,45346,17771,44766,17335,45561,18446,17556,44837,13,44762,44671,44851,45567,6782,45516,44836,17237,18900,14402,44853,44858,30963,44856,18719,30135,32454,44775,4686,17092,44865,44870,45518,45051,45229,5259,5993,18688,18301,18286,45262,18981,18279,3883,18650,18172,39676,44687,17492,44711,44767,17756,17278,17848,18430,17981,44845,44875,24411,18794,18894,18652,45277,44855,17703,44739)
Unknown column 'np.person' in 'where clause'