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 (44894,17492,18794,44861,17839,44865,18446,19078,17092,17981,24441,43800,6862,44765,18894,5259,44674,18648,24411,45518,45517,44835,3883,44669,17657,44762,17556,6609,44875,44845,44836,45421,45177,5993,8753,45229,44711,36472,17335,17835,45042,14622,34194,18688,18353,44873,44671,44837,18652,6875,39676,13922,16935,17904,18301,18430,30135,5410,45561,45072,18650,18900,44856,32454,18172,16885,24412,31354,6782,44687)
Unknown column 'np.person' in 'where clause'