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 (45286,44531,44856,17335,18172,45229,14402,45561,28530,44739,45042,4765,18430,30986,44867,45262,17237,37267,37057,17839,44863,5410,45567,13,10402,17657,44764,18237,18894,17848,44689,18427,6875,18981,18286,45180,45177,44894,18650,44870,44745,30135,44765,6862,44858,4686,17771,44687,16885,44845,44767,18794,44865,24412,44878,45043,5259,17278,17756,44869,44685,3883,31354,44884,18279,24411,44861,44640,17556,18185)
Unknown column 'np.person' in 'where clause'