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 (44884,44531,28530,5993,39676,37057,4765,17839,44671,17904,17335,30963,18894,30986,6862,18301,18719,44856,24438,44685,17771,44845,18427,8753,44853,44674,3883,17848,10402,44854,45561,44849,44766,17657,13425,18981,17278,18688,24412,16885,32454,22509,44764,45072,9341,18353,44848,6875,45515,44873,44687,6609,13,44640,45262,17114,28313,18650,44669,44894,44739,13922,19078,44711,36472,30135,17351,44768,45042,13988)
Unknown column 'np.person' in 'where clause'