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 (44853,44865,32454,44766,45567,6875,44687,45043,44739,13988,18427,13922,36472,4686,5259,18237,24411,37057,16935,44866,44640,5388,44873,16885,44764,44762,18652,44768,44870,44674,30986,17756,17755,18688,44745,17835,45042,17335,44765,6862,9341,19078,44858,19057,17492,44869,44775,45421,44835,44849,45286,34194,18648,18719,44845,44689,18446,17237,18996,17601,44875,28530,44851,45262,44685,17657,45229,45072,17092,44836)
Unknown column 'np.person' in 'where clause'