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 (10402,39676,44766,44689,44775,17981,14402,18894,44861,44866,17839,5410,45042,45567,45180,17657,18688,18900,44745,44674,44739,17703,36472,45561,18446,44848,45286,24438,44531,18652,17755,44687,44835,44858,44711,32454,6782,44851,18650,3,17009,13,44849,44853,45051,44894,44685,45177,18794,45072,17756,44869,18981,44837,18719,30135,44836,13988,22509,17771,44855,44845,45518,44640,18301,16885,44863,13425,45277,37057)
Unknown column 'np.person' in 'where clause'