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 (9341,17756,18237,44865,18172,18688,18894,6862,44739,18650,17009,18652,17839,45177,45229,24441,44863,34194,14402,45567,45346,10402,17351,45043,18648,6875,13922,17492,39676,43800,17335,44689,44669,13988,31354,18301,44837,44762,19078,18042,28530,44685,17657,13425,17556,30986,44745,16885,44764,18794,5388,44768,44687,5410,44640,17601,18996,44875,4765,45262,44856,44894,44868,44835,44878,17114,45072,44870,44775,45515)
Unknown column 'np.person' in 'where clause'