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 (45567,24412,18430,44855,45177,5993,45042,4765,9341,45421,17278,6609,44531,44836,18237,18185,16885,44853,45516,44867,44674,18301,13988,28313,44640,44861,39676,3,30986,18286,44868,6875,5410,44835,18427,17556,5388,17601,44745,13922,45229,6782,14622,19078,44848,31354,45517,18688,18894,18981,18650,6862,14402,44875,17904,24411,44766,30963,44687,44775,44870,16935,18446,13,44863,45277,44764,28530,17771,44849)
Unknown column 'np.person' in 'where clause'