Hi Nuno
i faced some problems your already facing and succeeded to solve them so i'd like to as you
did you install SERweb tables ?
if though the problems come from there especially the phplib_id field a duplication happened between it and the "id" filed so you have to remove SERweb tables and all thing will go smoothly without any errors
p.s i recommend you to remove the whole database e.g openser and install it again using openser_mysql.sh script
e.g /path/to/openser_mysql.sh create
press yes for presence and that stuff but for SERweb no
try and tell me what you get
BR
Muhammad