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 (5410,18719,18900,45177,45567,17278,18353,45286,4765,17839,5259,44845,30986,17904,44764,17092,19057,44884,36472,31354,18286,32454,17601,44765,13,44856,18688,13922,44671,5993,10402,30135,44855,45517,44869,34194,17755,6862,45516,5388,17771,44875,6782,13988,18172,39676,44878,44685,17237,17657,44640,6609,43800,44853,44775,44766,44851,44868,44739,17848,45262,17835,44689,45180,28313,18430,3,44745,44849,24441)
Unknown column 'np.person' in 'where clause'