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 (17835,44687,45286,45515,17335,17527,45567,24441,44739,34194,18427,45517,18996,45518,44764,17657,17771,44674,18650,44766,44884,44849,18794,44868,44531,28530,5388,18900,44835,18719,44762,44685,44854,17981,45421,17351,6875,45042,45180,45277,45051,16885,45072,14622,5259,18572,17492,39676,17237,45262,37057,4765,45177,13,44775,44837,18042,30963,18301,5993,36472,37267,44671,44861,28313,44848,3883,22509,18688,17839)
Unknown column 'np.person' in 'where clause'