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,19057,18648,10402,24438,44685,32454,34194,44835,18981,28313,44869,45517,3883,18185,44640,45043,17981,45180,44849,18430,45518,18353,45277,43800,17848,44894,45567,18794,44875,19078,44845,18286,6875,17657,6862,44848,18900,17335,18719,44854,18894,30963,17492,17556,45072,44837,44878,37057,17771,24441,16935,3,18688,44687,22509,13988,9341,44884,14622,44674,18237,6609,17904,45262,44711,18427,44765,36472,13922)
Unknown column 'np.person' in 'where clause'