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 (44851,17904,17492,44853,4765,44745,17601,44849,37267,44863,17835,18894,17527,24441,18286,17703,17092,18900,44766,31354,44854,45286,45518,5410,13425,16885,45561,44870,44764,6875,45177,9341,3,19057,30963,17839,30986,14622,19078,39676,17657,45346,18688,18794,45043,18719,44848,5388,44765,44845,44858,24412,13988,44869,45277,18981,22509,43800,4686,44674,24438,44835,45516,45042,18279,18172,44873,17755,37057,13922)
Unknown column 'np.person' in 'where clause'