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 (18172,16885,13,45042,44836,44640,28530,18981,44873,45567,30963,17981,28313,18237,45515,30135,44849,44689,17771,45180,3883,44866,18900,44870,18301,44867,17335,22509,14402,18648,10402,44669,45421,44766,44685,18353,36472,44853,45277,5259,44854,44745,24411,18894,17492,30986,18279,17601,45072,17755,17657,45177,17527,44764,31354,6875,44531,18719,6782,32454,45346,18286,44865,4765,45262,45229,13922,19057,17703,44861)
Unknown column 'np.person' in 'where clause'