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 (5993,30135,4765,44863,44836,18688,45051,13,28530,45567,45042,19078,45177,18042,9341,28313,16935,45561,44765,17009,44739,45518,32454,18650,44878,45346,18719,19057,17756,44894,18172,44640,45262,18430,44669,45515,3883,18900,17981,44766,43800,17839,17771,13425,44687,24441,44685,34194,44855,44745,17335,45421,16885,45516,44768,6609,17556,24412,37267,39676,17527,44870,44711,24411,4686,44775,17703,44848,45286,17848)
Unknown column 'np.person' in 'where clause'