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 (28313,5388,44674,44870,18719,45072,36472,19057,17278,44851,44845,18981,45277,17703,13922,17556,44767,44687,45516,45286,44869,10402,44873,39676,17835,6609,44689,18446,45517,24441,18572,18042,18894,18652,45561,18427,34194,17335,17601,24411,44762,18353,4686,18650,44865,44861,44837,16935,44766,44669,22509,45567,18301,19078,45042,17756,44685,44671,44854,44531,44858,44745,44765,44894,44878,44711,14622,44848,17904,45051)
Unknown column 'np.person' in 'where clause'