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 (5259,44853,30963,17839,9341,45229,45286,44868,18279,44858,30135,44870,17556,24411,44687,44766,44674,39676,17237,44745,45277,45177,36472,17848,44767,44685,24438,44775,44867,5388,44837,28313,45043,43800,5410,4765,18650,44836,17492,17527,18430,45051,45042,13425,17278,44855,45515,44866,44764,44845,17351,17335,44849,18981,17703,44640,45561,17904,24441,44861,3883,10402,44531,44875,44835,18446,44739,44854,17771,17835)
Unknown column 'np.person' in 'where clause'