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 (44878,24411,6862,45518,18996,16935,6609,18172,44863,10402,4765,3,44531,44689,24441,17601,17657,44869,4686,5410,18286,24412,44861,45180,8753,30135,9341,17771,28313,44854,37057,44855,44849,44851,17848,18279,45043,17981,44768,14402,44873,18652,37267,28530,18900,45042,30963,6782,44836,22509,36472,17335,18648,17556,13922,44685,18185,17839,14622,45561,17703,45277,18446,44739,44762,18981,44837,43800,18719,44775)
Unknown column 'np.person' in 'where clause'