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 (22509,17114,13,34194,17527,19078,14622,18430,44878,44640,30963,44768,18301,3,10402,45346,18894,44863,17835,44739,45421,17278,44845,13922,44775,45229,18427,44849,17703,17009,45516,5259,44765,24441,44685,8753,44836,44671,44858,44674,18446,18279,45567,14402,44861,36472,17556,24412,6782,16885,19057,44855,44848,44745,17755,18650,6875,45517,44531,44851,44873,16935,45277,13425,17492,6862,44669,18794,18981,32454)
Unknown column 'np.person' in 'where clause'