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 (44849,6609,22509,18996,44685,17492,32454,44775,44869,45043,5259,44873,44765,44865,30135,44878,10402,16885,45421,45262,44853,44894,24441,13988,18900,18237,18353,6862,44866,34194,17092,13922,17237,24438,17114,19078,45177,44669,45051,45515,36472,44640,17835,28313,18286,44531,16935,18279,44745,44671,31354,18430,44845,17657,18794,17848,45042,30963,18650,4765,44875,17351,45567,44739,5993,45516,3,44854,18172,17981)
Unknown column 'np.person' in 'where clause'