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 (44745,6862,18900,44868,44845,17771,44671,17703,18042,37057,45277,18981,22509,44854,45072,44531,44768,8753,18286,31354,17335,17904,18996,45516,44669,18353,45518,30963,17657,44861,17835,13988,17009,17092,44894,44869,18894,9341,44640,17981,44711,44765,17114,44836,18301,17601,44835,14622,32454,3,45229,18446,44873,18430,18650,44689,44865,10402,43800,18652,19057,44856,18427,45517,16885,30986,17527,44766,17848,5259)
Unknown column 'np.person' in 'where clause'