No colums or rows if query fails.
Unify error handling.
Get data error from SELECT ... LIMIT 0.