Merge pull request #1448 from Martynas-P/v1.5.6.x

Fixing the usage of ternary operator in model which caused Empty Query error
Removed throw statement in the mysqli driver.
Merge branch 'v1.5.6.x' of https://github.com/opencart/opencart into opencart/v1.5.6.x