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 (24411,17904,18279,45517,44531,30963,19078,17848,44671,44863,44689,17556,44854,24412,18648,44867,18900,18185,5259,44837,18719,45177,17657,32454,18286,37267,45516,30135,18237,17009,44855,5388,44836,37057,17335,45043,45229,44685,22509,44687,10402,6782,45515,18446,44870,44884,45262,16885,17237,44674,44764,45286,18430,17981,44768,14402,44762,45051,9341,6875,43800,13988,13,44878,17278,3883,44869,18996,18172,44835)
Unknown column 'np.person' in 'where clause'