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 (30986,44685,13,18430,17492,45229,6862,44861,44767,3,6782,43800,44762,17114,16885,6609,17657,44866,44775,44766,18237,5388,24438,45262,44671,18301,18650,44837,44689,17009,17848,44875,13425,17351,45072,17771,5259,45177,44868,44856,45518,17981,13988,18981,44669,17556,45421,45517,44764,24441,30135,18794,45516,24411,34194,18353,45043,5993,45286,44745,17703,17904,17237,44865,28313,13922,17092,3883,44878,17755)
Unknown column 'np.person' in 'where clause'