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 (44854,17009,44853,18446,18172,44767,45042,3883,18652,30963,18794,9341,18688,17114,24441,17904,44775,13425,44837,17237,44848,44858,30135,44894,3,44687,18900,44764,18301,44836,45567,5259,32454,5388,17657,13922,45072,24438,44869,45421,45346,44765,34194,37057,17703,17981,6609,24411,18286,44674,44745,10402,18648,14402,17835,19057,18279,17601,45516,16885,17556,37267,6875,17335,45561,44689,44739,31354,44878,45515)
Unknown column 'np.person' in 'where clause'