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 (44765,17848,44894,10402,18719,44884,19057,17904,3,18648,18894,6875,5388,45286,6862,45346,17755,17556,13988,45180,45561,13425,28530,44849,18279,37057,44878,44867,13,44837,19078,45517,9341,24411,44845,44739,45567,44848,37267,5259,44873,4686,5993,18996,24438,17835,17278,44689,18185,18286,44674,28313,45262,44671,24412,17492,45515,44745,18650,17527,14402,44853,45277,34194,17601,44868,4765,17237,44764,17657)
Unknown column 'np.person' in 'where clause'