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 (17492,18572,16935,10402,18286,17527,17114,44671,45421,45072,44868,18237,39676,14402,44858,24438,44765,44875,44768,45515,18719,37057,5993,17981,45180,32454,17657,16885,24411,44640,45177,44853,44849,44854,44884,18794,45561,4765,44870,18301,17092,45262,17848,18446,9341,44869,44851,17771,30135,18430,5388,44689,37267,44745,45286,18427,44764,30963,44873,28313,44739,44865,13988,5410,17556,13425,44855,6782,44766,45051)
Unknown column 'np.person' in 'where clause'