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 (45043,45346,17092,14622,44685,44858,45262,18185,8753,45072,44870,44868,5993,17556,44687,18996,45561,17492,19057,44867,17278,30986,44766,18042,17756,44866,44835,45042,18900,17335,34194,18430,44768,37057,31354,9341,44848,44836,44762,18894,44531,6782,44878,17839,45517,30135,44640,45180,24441,18648,18688,24411,3,4765,44873,44854,44669,28530,18286,45277,17009,44674,44851,6862,18981,5410,5388,18652,44865,44863)
Unknown column 'np.person' in 'where clause'