PHP MYSQL Joomla Egg Catching