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 (17492,13,5410,44762,44870,18286,6609,17755,43800,19057,13922,24438,44711,45517,17848,44866,44849,4686,44867,18650,44768,17771,17278,17527,44745,13988,44894,44640,45561,5388,16935,3883,32454,4765,18648,18652,44764,45421,45042,45177,17556,44851,3,44674,17009,5993,22509,44765,6875,18900,24441,24412,44868,17601,5259,44861,44878,44869,44853,14402,18688,17237,44531,18794,45262,44835,16885,6862,30986,44856)
Unknown column 'np.person' in 'where clause'