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 (17756,44855,44531,18652,39676,37267,9341,45517,17904,44865,44856,16935,17703,37057,3883,45286,30963,17237,24438,45277,44845,44858,44837,13425,44669,30135,44766,45567,44884,28530,14622,44878,19078,17835,44671,6862,45180,18279,44739,18650,18794,45516,44764,6609,44848,13,17335,45229,18648,44711,44775,28313,18185,5388,8753,17771,17114,34194,5993,18042,13988,22509,4765,18430,17009,44687,45072,44762,44768,44689)
Unknown column 'np.person' in 'where clause'