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 (37267,44861,8753,44775,44884,44870,4765,44640,44711,18286,18042,5993,28313,17351,44873,18900,44745,44768,6875,17492,44854,3,44858,45043,17771,18446,44671,45051,44869,24411,18719,45042,44674,17009,16885,18981,45346,45177,6862,45567,19057,44837,44867,44687,19078,22509,44739,17335,44767,32454,18996,39676,17657,3883,18172,44853,17848,44856,13425,13922,17527,17756,17839,44849,28530,45262,44836,44845,30135,4686)
Unknown column 'np.person' in 'where clause'