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,45072,17703,18900,18279,6862,45229,18688,45262,44766,22509,18286,28530,18237,24412,6609,44836,13,13988,17771,17556,45515,30986,24438,44835,44674,45421,17092,45518,37057,18353,4765,6875,18430,17657,44849,5259,44745,44837,17278,34194,13425,18172,44856,45346,13922,30135,44869,18648,43800,24411,3883,45561,5410,18301,44868,44640,17335,44845,44878,44865,44863,44858,18794,32454,44848,17237,14622,14402,10402)
Unknown column 'np.person' in 'where clause'