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 (44869,3883,24411,39676,44875,17771,45051,18894,17335,3,17835,45042,44671,17981,17556,45518,5410,19057,16885,44836,18301,18237,44894,17848,44674,18042,17492,44762,45277,44835,44848,17009,44689,17278,13988,18353,18719,44870,18648,18981,5993,18572,18900,5259,10402,30135,31354,36472,28313,44854,44640,45561,18430,17904,45177,44866,13922,45517,44687,44711,44853,30963,37267,44865,45421,6875,43800,44765,17527,16935)
Unknown column 'np.person' in 'where clause'