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,45515,44762,18894,44764,19057,17114,45567,30135,4686,19078,44765,44894,4765,18652,44856,18237,17835,44854,45286,44689,24438,17092,44531,37267,44745,17556,45229,13988,17848,3,17237,45043,45421,45517,17771,18900,44766,44671,45516,44835,8753,44865,44878,5993,44687,44768,44861,13922,22509,18650,17657,44739,17335,45177,32454,18286,5259,13425,18719,44674,14622,6782,44875,3883,31354,44775,18688,44863,16885)
Unknown column 'np.person' in 'where clause'